Domain.fromJson constructor

Domain.fromJson(
  1. Map json_
)

Implementation

Domain.fromJson(core.Map json_)
    : this(
        admin:
            json_.containsKey('admin') ? json_['admin'] as core.String : null,
        auditLogsEnabled: json_.containsKey('auditLogsEnabled')
            ? json_['auditLogsEnabled'] as core.bool
            : null,
        authorizedNetworks: json_.containsKey('authorizedNetworks')
            ? (json_['authorizedNetworks'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        fqdn: json_.containsKey('fqdn') ? json_['fqdn'] 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,
        locations: json_.containsKey('locations')
            ? (json_['locations'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        reservedIpRange: json_.containsKey('reservedIpRange')
            ? json_['reservedIpRange'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        statusMessage: json_.containsKey('statusMessage')
            ? json_['statusMessage'] as core.String
            : null,
        trusts: json_.containsKey('trusts')
            ? (json_['trusts'] as core.List)
                .map((value) => Trust.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );