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,
      );