toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id == null ? null : id,
"first_name": firstName == null ? null : firstName,
"middle_name": middleName,
"last_name": lastName == null ? null : lastName,
"suffix": suffix == null ? null : suffix,
"email": email == null ? null : email,
"username": username,
"address_1": address1 == null ? null : address1,
"address_2": address2 == null ? null : address2,
"state": state == null ? null : state,
"country": country == null ? null : country,
"postal_code": postalCode == null ? null : postalCode,
"phone": phone == null ? null : phone,
"phone_type": phoneType == null ? null : phoneType,
"locale": locale == null ? null : locale,
"status": status == null ? null : status,
"date_of_birth": dateOfBirth == null ? null : dateOfBirth,
"created_at": createdAt == null ? null : createdAt!.toIso8601String(),
"updated_at": updatedAt == null ? null : updatedAt!.toIso8601String(),
};