PreservedState.fromJson constructor

PreservedState.fromJson(
  1. Map json_
)

Implementation

PreservedState.fromJson(core.Map json_)
    : this(
        disks: json_.containsKey('disks')
            ? (json_['disks'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  PreservedStatePreservedDisk.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,
                  PreservedStatePreservedNetworkIp.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,
                  PreservedStatePreservedNetworkIp.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        metadata: json_.containsKey('metadata')
            ? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );