attachmentProviderListFromJson function

List<AttachmentProvider> attachmentProviderListFromJson(
  1. List? attachmentProvider
)

Implementation

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

  return attachmentProvider
      .map((e) => attachmentProviderFromJson(e.toString()))
      .toList();
}