GoogleCloudAiplatformV1PersistentResource.fromJson constructor

GoogleCloudAiplatformV1PersistentResource.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1PersistentResource.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        encryptionSpec: json_.containsKey('encryptionSpec')
            ? GoogleCloudAiplatformV1EncryptionSpec.fromJson(
                json_['encryptionSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        error: json_.containsKey('error')
            ? GoogleRpcStatus.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        reservedIpRanges: json_.containsKey('reservedIpRanges')
            ? (json_['reservedIpRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        resourcePools: json_.containsKey('resourcePools')
            ? (json_['resourcePools'] as core.List)
                .map((value) => GoogleCloudAiplatformV1ResourcePool.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resourceRuntime: json_.containsKey('resourceRuntime')
            ? GoogleCloudAiplatformV1ResourceRuntime.fromJson(
                json_['resourceRuntime']
                    as core.Map<core.String, core.dynamic>)
            : null,
        resourceRuntimeSpec: json_.containsKey('resourceRuntimeSpec')
            ? GoogleCloudAiplatformV1ResourceRuntimeSpec.fromJson(
                json_['resourceRuntimeSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );