NetworkConfig.fromJson constructor

NetworkConfig.fromJson(
  1. Map json_
)

Implementation

NetworkConfig.fromJson(core.Map json_)
    : this(
        bandwidth: json_.containsKey('bandwidth')
            ? json_['bandwidth'] as core.String
            : null,
        cidr: json_.containsKey('cidr') ? json_['cidr'] as core.String : null,
        gcpService: json_.containsKey('gcpService')
            ? json_['gcpService'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        jumboFramesEnabled: json_.containsKey('jumboFramesEnabled')
            ? json_['jumboFramesEnabled'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        serviceCidr: json_.containsKey('serviceCidr')
            ? json_['serviceCidr'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        userNote: json_.containsKey('userNote')
            ? json_['userNote'] as core.String
            : null,
        vlanAttachments: json_.containsKey('vlanAttachments')
            ? (json_['vlanAttachments'] as core.List)
                .map((value) => IntakeVlanAttachment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        vlanSameProject: json_.containsKey('vlanSameProject')
            ? json_['vlanSameProject'] as core.bool
            : null,
      );