GoogleCloudAiplatformV1RaySpec.fromJson constructor

GoogleCloudAiplatformV1RaySpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1RaySpec.fromJson(core.Map json_)
    : this(
        headNodeResourcePoolId: json_.containsKey('headNodeResourcePoolId')
            ? json_['headNodeResourcePoolId'] as core.String
            : null,
        imageUri: json_.containsKey('imageUri')
            ? json_['imageUri'] as core.String
            : null,
        rayMetricSpec: json_.containsKey('rayMetricSpec')
            ? GoogleCloudAiplatformV1RayMetricSpec.fromJson(
                json_['rayMetricSpec'] as core.Map<core.String, core.dynamic>)
            : null,
        resourcePoolImages: json_.containsKey('resourcePoolImages')
            ? (json_['resourcePoolImages']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );