ManagedZone.fromJson constructor

ManagedZone.fromJson(
  1. Map json_
)

Implementation

ManagedZone.fromJson(core.Map json_)
    : this(
        cloudLoggingConfig: json_.containsKey('cloudLoggingConfig')
            ? ManagedZoneCloudLoggingConfig.fromJson(
                json_['cloudLoggingConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        dnsName: json_.containsKey('dnsName')
            ? json_['dnsName'] as core.String
            : null,
        dnssecConfig: json_.containsKey('dnssecConfig')
            ? ManagedZoneDnsSecConfig.fromJson(
                json_['dnssecConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        forwardingConfig: json_.containsKey('forwardingConfig')
            ? ManagedZoneForwardingConfig.fromJson(json_['forwardingConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nameServerSet: json_.containsKey('nameServerSet')
            ? json_['nameServerSet'] as core.String
            : null,
        nameServers: json_.containsKey('nameServers')
            ? (json_['nameServers'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        peeringConfig: json_.containsKey('peeringConfig')
            ? ManagedZonePeeringConfig.fromJson(
                json_['peeringConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        privateVisibilityConfig: json_.containsKey('privateVisibilityConfig')
            ? ManagedZonePrivateVisibilityConfig.fromJson(
                json_['privateVisibilityConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        reverseLookupConfig: json_.containsKey('reverseLookupConfig')
            ? ManagedZoneReverseLookupConfig.fromJson(
                json_['reverseLookupConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        serviceDirectoryConfig: json_.containsKey('serviceDirectoryConfig')
            ? ManagedZoneServiceDirectoryConfig.fromJson(
                json_['serviceDirectoryConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        visibility: json_.containsKey('visibility')
            ? json_['visibility'] as core.String
            : null,
      );