CreatePhoneNumberRequest class

Constructors

CreatePhoneNumberRequest.new({required String userId, required String phoneNumber, bool? verified, bool? primary, bool? reservedForSecondFactor})
Returns a new CreatePhoneNumberRequest instance.

Properties

hashCode int
The hash code for this object.
no setteroverride
phoneNumber String
The new phone number. Must adhere to the E.164 standard for phone number format.
getter/setter pair
primary bool?
Create this phone number as the primary phone number for the user. Default: false, unless it is the first phone number.
getter/setter pair
reservedForSecondFactor bool?
Create this phone number as reserved for multi-factor authentication. The phone number must also be verified. If there are no other reserved second factors, the phone number will be set as the default second factor.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
The ID representing the user
getter/setter pair
verified bool?
When created, the phone number will be marked as verified.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) CreatePhoneNumberRequest?
Returns a new CreatePhoneNumberRequest instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<CreatePhoneNumberRequest>
mapFromJson(dynamic json) Map<String, CreatePhoneNumberRequest>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<CreatePhoneNumberRequest>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.