toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'personalDetails',
if (extra != null) '@extra': extra,
'first_name': first_name,
'middle_name': middle_name,
'last_name': last_name,
'native_first_name': native_first_name,
'native_middle_name': native_middle_name,
'native_last_name': native_last_name,
'birthdate': birthdate,
'gender': gender,
'country_code': country_code,
'residence_country_code': residence_country_code
};
}