countryCodeListFromJson function

List<CountryCode> countryCodeListFromJson(
  1. List? countryCode
)

Implementation

List<enums.CountryCode> countryCodeListFromJson(List? countryCode) {
  if (countryCode == null) {
    return [];
  }

  return countryCode.map((e) => countryCodeFromJson(e.toString())).toList();
}