MCPcopy Create free account
hub / github.com/algolia/cli / toUser

Method toUser

api/dashboard/types.go:275–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273}
274
275func (r *userResponse) toUser() DashboardUser {
276 u := DashboardUser{}
277
278 switch {
279 case r.HasPaymentMethod != nil:
280 u.HasPaymentMethod = *r.HasPaymentMethod
281 case r.Data != nil && r.Data.Attributes.HasPaymentMethod != nil:
282 u.HasPaymentMethod = *r.Data.Attributes.HasPaymentMethod
283 }
284
285 return u
286}

Callers 1

GetUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected