ConfluenceConfiguration.fromJson constructor

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

Implementation

factory ConfluenceConfiguration.fromJson(Map<String, dynamic> json) {
  return ConfluenceConfiguration(
    secretArn: json['SecretArn'] as String,
    serverUrl: json['ServerUrl'] as String,
    version: (json['Version'] as String).toConfluenceVersion(),
    attachmentConfiguration: json['AttachmentConfiguration'] != null
        ? ConfluenceAttachmentConfiguration.fromJson(
            json['AttachmentConfiguration'] as Map<String, dynamic>)
        : null,
    blogConfiguration: json['BlogConfiguration'] != null
        ? ConfluenceBlogConfiguration.fromJson(
            json['BlogConfiguration'] as Map<String, dynamic>)
        : null,
    exclusionPatterns: (json['ExclusionPatterns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    inclusionPatterns: (json['InclusionPatterns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    pageConfiguration: json['PageConfiguration'] != null
        ? ConfluencePageConfiguration.fromJson(
            json['PageConfiguration'] as Map<String, dynamic>)
        : null,
    spaceConfiguration: json['SpaceConfiguration'] != null
        ? ConfluenceSpaceConfiguration.fromJson(
            json['SpaceConfiguration'] as Map<String, dynamic>)
        : null,
    vpcConfiguration: json['VpcConfiguration'] != null
        ? DataSourceVpcConfiguration.fromJson(
            json['VpcConfiguration'] as Map<String, dynamic>)
        : null,
  );
}