toJson method

Map<String, dynamic> toJson()

Implementation

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