toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "first_name": firstName,
    "middle_name": middleName,
    "last_name": lastName,
    "native_first_name": nativeFirstName,
    "native_middle_name": nativeMiddleName,
    "native_last_name": nativeLastName,
    "birthdate": birthdate.toJson(),
    "gender": gender,
    "country_code": countryCode,
    "residence_country_code": residenceCountryCode,
  };
}