toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'name': name,
'email': email,
'date_of_birth': dateOfBirth,
'gender': gender,
'insurance_id': insuranceId,
'policy_number': policyNumber,
'nationality_number': nationalityNumber,
'height': height,
'weight': weight,
'blood_type': bloodType,
'relation_type': relationType,
'smoker': smoker,
'alcoholic': alcoholic,
'marital_status': maritalStatus,
};
}