2023-02-03 03:34:09 +00:00
|
|
|
|
2023-02-20 07:48:24 +00:00
|
|
|
import '../../location/country.dart';
|
|
|
|
|
2023-02-03 03:34:09 +00:00
|
|
|
class Citizenship {
|
|
|
|
Citizenship({
|
|
|
|
required this.country,
|
|
|
|
required this.naturalBorn,
|
|
|
|
});
|
|
|
|
|
|
|
|
final Country? country;
|
|
|
|
final bool? naturalBorn;
|
|
|
|
|
|
|
|
factory Citizenship.fromJson(Map<String, dynamic> json) => Citizenship(
|
|
|
|
country: Country.fromJson(json["country"]),
|
|
|
|
naturalBorn: json["natural_born"],
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
"country": country!.toJson(),
|
|
|
|
"natural_born": naturalBorn,
|
|
|
|
};
|
|
|
|
}
|