issuingCountryListFromJson function
List<IssuingCountry>
issuingCountryListFromJson(
- List? issuingCountry, [
- List<
IssuingCountry> ? defaultValue
Implementation
List<enums.IssuingCountry> issuingCountryListFromJson(
List? issuingCountry, [
List<enums.IssuingCountry>? defaultValue,
]) {
if (issuingCountry == null) {
return defaultValue ?? [];
}
return issuingCountry
.map((e) => issuingCountryFromJson(e.toString()))
.toList();
}