LokotroRefCountry.fromJson constructor

LokotroRefCountry.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LokotroRefCountry.fromJson(Map<String, dynamic> json) {
  return LokotroRefCountry(
    id: json['id'] as String? ?? '',
    name: json['name'] as String? ?? '',
    countryFlag: json['country_flag'] as String? ?? '🏳️',
    minPhoneNumberChars: json['min_phone_number_chars'] as int? ?? 9,
    maxPhoneNumberChars: json['max_phone_number_chars'] as int? ?? 9,
  );
}