InstanceInfo.fromJson constructor

InstanceInfo.fromJson(
  1. Map json_
)

Implementation

InstanceInfo.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        externalIp: json_.containsKey('externalIp')
            ? json_['externalIp'] as core.String
            : null,
        interface: json_.containsKey('interface')
            ? json_['interface'] as core.String
            : null,
        internalIp: json_.containsKey('internalIp')
            ? json_['internalIp'] as core.String
            : null,
        networkTags: json_.containsKey('networkTags')
            ? (json_['networkTags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        networkUri: json_.containsKey('networkUri')
            ? json_['networkUri'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );