attachmentTypeListFromJson function

List<AttachmentType> attachmentTypeListFromJson(
  1. List? attachmentType
)

Implementation

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

  return attachmentType
      .map((e) => attachmentTypeFromJson(e.toString()))
      .toList();
}