attachmentTypeListToJson function

List<String> attachmentTypeListToJson(
  1. List<AttachmentType>? attachmentType
)

Implementation

List<String> attachmentTypeListToJson(
    List<enums.AttachmentType>? attachmentType) {
  if (attachmentType == null) {
    return [];
  }

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