depositSwitchCreateRequestCountryCodeListFromJson function

List<DepositSwitchCreateRequestCountryCode> depositSwitchCreateRequestCountryCodeListFromJson(
  1. List? depositSwitchCreateRequestCountryCode, [
  2. List<DepositSwitchCreateRequestCountryCode>? defaultValue
])

Implementation

List<enums.DepositSwitchCreateRequestCountryCode>
    depositSwitchCreateRequestCountryCodeListFromJson(
  List? depositSwitchCreateRequestCountryCode, [
  List<enums.DepositSwitchCreateRequestCountryCode>? defaultValue,
]) {
  if (depositSwitchCreateRequestCountryCode == null) {
    return defaultValue ?? [];
  }

  return depositSwitchCreateRequestCountryCode
      .map((e) => depositSwitchCreateRequestCountryCodeFromJson(e.toString()))
      .toList();
}