accountSelectionCardinalityListToJson function

List<String> accountSelectionCardinalityListToJson(
  1. List<AccountSelectionCardinality>? accountSelectionCardinality
)

Implementation

List<String> accountSelectionCardinalityListToJson(
    List<enums.AccountSelectionCardinality>? accountSelectionCardinality) {
  if (accountSelectionCardinality == null) {
    return [];
  }

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