DomainProvisioning.fromJson constructor

DomainProvisioning.fromJson(
  1. Map json_
)

Implementation

DomainProvisioning.fromJson(core.Map json_)
    : this(
        certChallengeDiscoveredTxt:
            json_.containsKey('certChallengeDiscoveredTxt')
                ? (json_['certChallengeDiscoveredTxt'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        certChallengeDns: json_.containsKey('certChallengeDns')
            ? CertDnsChallenge.fromJson(json_['certChallengeDns']
                as core.Map<core.String, core.dynamic>)
            : null,
        certChallengeHttp: json_.containsKey('certChallengeHttp')
            ? CertHttpChallenge.fromJson(json_['certChallengeHttp']
                as core.Map<core.String, core.dynamic>)
            : null,
        certStatus: json_.containsKey('certStatus')
            ? json_['certStatus'] as core.String
            : null,
        discoveredIps: json_.containsKey('discoveredIps')
            ? (json_['discoveredIps'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        dnsFetchTime: json_.containsKey('dnsFetchTime')
            ? json_['dnsFetchTime'] as core.String
            : null,
        dnsStatus: json_.containsKey('dnsStatus')
            ? json_['dnsStatus'] as core.String
            : null,
        expectedIps: json_.containsKey('expectedIps')
            ? (json_['expectedIps'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );