toJson method
Implementation
Map<String, dynamic> toJson() => {
"address": address.toJson(),
"dateOfBirth": dateOfBirth,
"email": email,
"gender": gender,
"generatedAt": generatedAt,
"maskedNumber": maskedNumber,
"name": name,
"phone": phone,
"photo": photo,
};