countryCodeNullableListFromJson function
List<CountryCode> ?
countryCodeNullableListFromJson(
- List? countryCode, [
- List<
CountryCode> ? defaultValue
Implementation
List<enums.CountryCode>? countryCodeNullableListFromJson(
List? countryCode, [
List<enums.CountryCode>? defaultValue,
]) {
if (countryCode == null) {
return defaultValue;
}
return countryCode.map((e) => countryCodeFromJson(e.toString())).toList();
}