documentNameMatchCodeListToJson function

List<String> documentNameMatchCodeListToJson(
  1. List<DocumentNameMatchCode>? documentNameMatchCode
)

Implementation

List<String> documentNameMatchCodeListToJson(
    List<enums.DocumentNameMatchCode>? documentNameMatchCode) {
  if (documentNameMatchCode == null) {
    return [];
  }

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