toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'firstName': firstName,
    'lastName': lastName,
    'languageCode': languageCode,
    'timeZone': timeZone,
    'address': address?.toMap(),
    'fields': fields?.map((e) => e.toMap()).toList(),
  };
}