toMap method
Implementation
Map<String, dynamic> toMap() => {
"id": id,
"email": email,
"phone": phone,
"status": status,
"role": role,
"groups": groups == null ? [] : List<dynamic>.from(groups!.map((x) => x)),
"attributes": attributes?.toMap(),
"first_name": firstName,
"last_name": lastName,
"business_code": businessCode,
"email_verified": emailVerified,
"phone_verified": phoneVerified,
"created_at": createdAt,
"chat_room_id": chatRoomId,
};