ConfluenceAttachmentConfiguration.fromJson constructor

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

Implementation

factory ConfluenceAttachmentConfiguration.fromJson(
    Map<String, dynamic> json) {
  return ConfluenceAttachmentConfiguration(
    attachmentFieldMappings: (json['AttachmentFieldMappings'] as List?)
        ?.whereNotNull()
        .map((e) => ConfluenceAttachmentToIndexFieldMapping.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    crawlAttachments: json['CrawlAttachments'] as bool?,
  );
}