asMap method
The asMap() method in the ClientSimpleAuthenticationData class is used to convert the object
into a Map representation. It returns a Map object that contains all the properties of the
ClientSimpleAuthenticationData object. Each property is mapped to its corresponding key-value
pair in the Map.
Implementation
Map asMap() => {
'email': email,
'phone': phone,
'customId': customId,
'uuid': uuid,
'firstName': firstName,
'lastName': lastName,
'displayName': displayName,
'sex': sex?.getSexAsString(),
'birthDate': birthDate,
'avatarUrl': avatarUrl,
'company': company,
'address': address,
'city': city,
'province': province,
'zipCode': zipCode,
'countryCode': countryCode,
'agreements': agreements?.asMap(),
'attributes': attributes
};