ConfluenceSpaceConfiguration.fromJson constructor

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

Implementation

factory ConfluenceSpaceConfiguration.fromJson(Map<String, dynamic> json) {
  return ConfluenceSpaceConfiguration(
    crawlArchivedSpaces: json['CrawlArchivedSpaces'] as bool?,
    crawlPersonalSpaces: json['CrawlPersonalSpaces'] as bool?,
    excludeSpaces: (json['ExcludeSpaces'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    includeSpaces: (json['IncludeSpaces'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    spaceFieldMappings: (json['SpaceFieldMappings'] as List?)
        ?.whereNotNull()
        .map((e) => ConfluenceSpaceToIndexFieldMapping.fromJson(
            e as Map<String, dynamic>))
        .toList(),
  );
}