ClientAccountRegisterContext.fromMap constructor
ClientAccountRegisterContext.fromMap(
- Map map
ClientAccountRegisterContext.fromMap(Map map) is a constructor that takes a Map as an argument
and creates a new instance of ClientAccountRegisterContext using the values from the Map.
Implementation
ClientAccountRegisterContext.fromMap(Map map)
: this(
email: map['email'],
password: map['password'],
firstName: map['firstName'],
lastName: map['lastName'],
sex: map['sex'] != null
? ClientSex.getClientSexFromString(map['sex'])
: null,
phone: map['phone'],
company: map['company'],
address: map['address'],
city: map['city'],
zipcode: map['zipcode'],
countrycode: map['countrycode'],
province: map['province'],
uuid: map['uuid'],
customId: map['customId'],
agreements: map['agreements'] != null
? ClientAgreements.fromMap(map['agreements'])
: null,
attributes: map['attributes'] != null
? Map<String, Object>.from(map['attributes'])
: null,
);