Trust.fromJson constructor

Trust.fromJson(
  1. Map json_
)

Implementation

Trust.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        lastTrustHeartbeatTime: json_.containsKey('lastTrustHeartbeatTime')
            ? json_['lastTrustHeartbeatTime'] as core.String
            : null,
        selectiveAuthentication: json_.containsKey('selectiveAuthentication')
            ? json_['selectiveAuthentication'] as core.bool
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateDescription: json_.containsKey('stateDescription')
            ? json_['stateDescription'] as core.String
            : null,
        targetDnsIpAddresses: json_.containsKey('targetDnsIpAddresses')
            ? (json_['targetDnsIpAddresses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        targetDomainName: json_.containsKey('targetDomainName')
            ? json_['targetDomainName'] as core.String
            : null,
        trustDirection: json_.containsKey('trustDirection')
            ? json_['trustDirection'] as core.String
            : null,
        trustHandshakeSecret: json_.containsKey('trustHandshakeSecret')
            ? json_['trustHandshakeSecret'] as core.String
            : null,
        trustType: json_.containsKey('trustType')
            ? json_['trustType'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );