DomainStatus.fromJson constructor

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

Implementation

factory DomainStatus.fromJson(Map<String, dynamic> json) {
  return DomainStatus(
    arn: json['ARN'] as String,
    clusterConfig:
        ClusterConfig.fromJson(json['ClusterConfig'] as Map<String, dynamic>),
    domainId: json['DomainId'] as String,
    domainName: json['DomainName'] as String,
    accessPolicies: json['AccessPolicies'] as String?,
    advancedOptions: (json['AdvancedOptions'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    advancedSecurityOptions: json['AdvancedSecurityOptions'] != null
        ? AdvancedSecurityOptions.fromJson(
            json['AdvancedSecurityOptions'] as Map<String, dynamic>)
        : null,
    autoTuneOptions: json['AutoTuneOptions'] != null
        ? AutoTuneOptionsOutput.fromJson(
            json['AutoTuneOptions'] as Map<String, dynamic>)
        : null,
    changeProgressDetails: json['ChangeProgressDetails'] != null
        ? ChangeProgressDetails.fromJson(
            json['ChangeProgressDetails'] as Map<String, dynamic>)
        : null,
    cognitoOptions: json['CognitoOptions'] != null
        ? CognitoOptions.fromJson(
            json['CognitoOptions'] as Map<String, dynamic>)
        : null,
    created: json['Created'] as bool?,
    deleted: json['Deleted'] as bool?,
    domainEndpointOptions: json['DomainEndpointOptions'] != null
        ? DomainEndpointOptions.fromJson(
            json['DomainEndpointOptions'] as Map<String, dynamic>)
        : null,
    eBSOptions: json['EBSOptions'] != null
        ? EBSOptions.fromJson(json['EBSOptions'] as Map<String, dynamic>)
        : null,
    encryptionAtRestOptions: json['EncryptionAtRestOptions'] != null
        ? EncryptionAtRestOptions.fromJson(
            json['EncryptionAtRestOptions'] as Map<String, dynamic>)
        : null,
    endpoint: json['Endpoint'] as String?,
    endpoints: (json['Endpoints'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    engineVersion: json['EngineVersion'] as String?,
    logPublishingOptions:
        (json['LogPublishingOptions'] as Map<String, dynamic>?)?.map((k, e) =>
            MapEntry(k.toLogType(),
                LogPublishingOption.fromJson(e as Map<String, dynamic>))),
    nodeToNodeEncryptionOptions: json['NodeToNodeEncryptionOptions'] != null
        ? NodeToNodeEncryptionOptions.fromJson(
            json['NodeToNodeEncryptionOptions'] as Map<String, dynamic>)
        : null,
    processing: json['Processing'] as bool?,
    serviceSoftwareOptions: json['ServiceSoftwareOptions'] != null
        ? ServiceSoftwareOptions.fromJson(
            json['ServiceSoftwareOptions'] as Map<String, dynamic>)
        : null,
    snapshotOptions: json['SnapshotOptions'] != null
        ? SnapshotOptions.fromJson(
            json['SnapshotOptions'] as Map<String, dynamic>)
        : null,
    upgradeProcessing: json['UpgradeProcessing'] as bool?,
    vPCOptions: json['VPCOptions'] != null
        ? VPCDerivedInfo.fromJson(json['VPCOptions'] as Map<String, dynamic>)
        : null,
  );
}