depositSwitchAltCreateRequestCountryCodeListToJson function

List<String> depositSwitchAltCreateRequestCountryCodeListToJson(
  1. List<DepositSwitchAltCreateRequestCountryCode>? depositSwitchAltCreateRequestCountryCode
)

Implementation

List<String> depositSwitchAltCreateRequestCountryCodeListToJson(
    List<enums.DepositSwitchAltCreateRequestCountryCode>?
        depositSwitchAltCreateRequestCountryCode) {
  if (depositSwitchAltCreateRequestCountryCode == null) {
    return [];
  }

  return depositSwitchAltCreateRequestCountryCode
      .map((e) => enums.$DepositSwitchAltCreateRequestCountryCodeMap[e]!)
      .toList();
}