toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'birth_date': birthDate.toString(),
'birth_year': birthYear,
'body_bone_mass': bodyBoneMass,
'body_fat': bodyFat,
'body_mass_index': bodyMassIndex,
'gender': gender?.toJson(),
'height': height,
'timezone': timezone.toString(),
'weight': weight,
};
}