taxpayerIdentifierTypeListToJson function

List<String> taxpayerIdentifierTypeListToJson(
  1. List<TaxpayerIdentifierType>? taxpayerIdentifierType
)

Implementation

List<String> taxpayerIdentifierTypeListToJson(
    List<enums.TaxpayerIdentifierType>? taxpayerIdentifierType) {
  if (taxpayerIdentifierType == null) {
    return [];
  }

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