NetworkPolicy.fromJson constructor

NetworkPolicy.fromJson(
  1. Map json_
)

Implementation

NetworkPolicy.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        edgeServicesCidr: json_.containsKey('edgeServicesCidr')
            ? json_['edgeServicesCidr'] as core.String
            : null,
        externalIp: json_.containsKey('externalIp')
            ? NetworkService.fromJson(
                json_['externalIp'] as core.Map<core.String, core.dynamic>)
            : null,
        internetAccess: json_.containsKey('internetAccess')
            ? NetworkService.fromJson(json_['internetAccess']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        vmwareEngineNetwork: json_.containsKey('vmwareEngineNetwork')
            ? json_['vmwareEngineNetwork'] as core.String
            : null,
        vmwareEngineNetworkCanonical:
            json_.containsKey('vmwareEngineNetworkCanonical')
                ? json_['vmwareEngineNetworkCanonical'] as core.String
                : null,
      );