StatefulPolicyPreservedState.fromJson constructor

StatefulPolicyPreservedState.fromJson(
  1. Map json_
)

Implementation

StatefulPolicyPreservedState.fromJson(core.Map json_)
    : this(
        disks: json_.containsKey('disks')
            ? (json_['disks'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  StatefulPolicyPreservedStateDiskDevice.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        externalIPs: json_.containsKey('externalIPs')
            ? (json_['externalIPs'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  StatefulPolicyPreservedStateNetworkIp.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        internalIPs: json_.containsKey('internalIPs')
            ? (json_['internalIPs'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  StatefulPolicyPreservedStateNetworkIp.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );