toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'image_url': imageURL,
'full_name': fullName,
'last_name': lastName,
'first_name': firstName,
'middle_name': middleName,
'date_of_birth': dateOfBirth,
'formatted_date_of_birth': formattedDateOfBirth,
'mobile_number': mobileNumber,
'nationality': nationality,
'gender': gender,
};
}