AttachmentConfiguration.fromJson constructor

AttachmentConfiguration.fromJson(
  1. Map<String, dynamic> json
)

Creates a new AttachmentConfiguration from json

Implementation

factory AttachmentConfiguration.fromJson(Map<String, dynamic> json) {
  return AttachmentConfiguration(
    signedUrlApiEndpoint: json['signedUrlEndpoint'] ?? json['signedUrl'],
    signedUrlFormApiEndpoint:
        json['unauthenticatedSignedUrlEndpoint'] ?? json['signedUrlForm'],
    attachmentApiEndpoint: json['apiEndpoint'] ?? json['storageUrl'],
  );
}