attachmentProviderListToJson function

List<String> attachmentProviderListToJson(
  1. List<AttachmentProvider>? attachmentProvider
)

Implementation

List<String> attachmentProviderListToJson(
    List<enums.AttachmentProvider>? attachmentProvider) {
  if (attachmentProvider == null) {
    return [];
  }

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