toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"name": name,
"email": email,
"phone_number": phoneNumber,
"account_id": accountId,
"created_at": createdAt?.toIso8601String(),
"updated_at": updatedAt?.toIso8601String(),
"additional_attributes": additionalAttributes?.toJson(),
"identifier": identifier,
"custom_attributes": customAttributes?.toJson(),
"last_activity_at": lastActivityAt,
"label_list": labelList == null
? []
: List<dynamic>.from(labelList!.map((x) => x)),
};