fromJson static method
Implementation
static AccountInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return AccountInfo(
registrationMonth: (json['registration_month'] as int?) ?? 0,
registrationYear: (json['registration_year'] as int?) ?? 0,
phoneNumberCountryCode:
(json['phone_number_country_code'] as String?) ?? '',
lastNameChangeDate: (json['last_name_change_date'] as int?) ?? 0,
lastPhotoChangeDate: (json['last_photo_change_date'] as int?) ?? 0,
);
}