GoogleCloudAiplatformV1FeatureValue.fromJson constructor

GoogleCloudAiplatformV1FeatureValue.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1FeatureValue.fromJson(core.Map json_)
    : this(
        boolArrayValue: json_.containsKey('boolArrayValue')
            ? GoogleCloudAiplatformV1BoolArray.fromJson(
                json_['boolArrayValue']
                    as core.Map<core.String, core.dynamic>)
            : null,
        boolValue: json_.containsKey('boolValue')
            ? json_['boolValue'] as core.bool
            : null,
        bytesValue: json_.containsKey('bytesValue')
            ? json_['bytesValue'] as core.String
            : null,
        doubleArrayValue: json_.containsKey('doubleArrayValue')
            ? GoogleCloudAiplatformV1DoubleArray.fromJson(
                json_['doubleArrayValue']
                    as core.Map<core.String, core.dynamic>)
            : null,
        doubleValue: json_.containsKey('doubleValue')
            ? (json_['doubleValue'] as core.num).toDouble()
            : null,
        int64ArrayValue: json_.containsKey('int64ArrayValue')
            ? GoogleCloudAiplatformV1Int64Array.fromJson(
                json_['int64ArrayValue']
                    as core.Map<core.String, core.dynamic>)
            : null,
        int64Value: json_.containsKey('int64Value')
            ? json_['int64Value'] as core.String
            : null,
        metadata: json_.containsKey('metadata')
            ? GoogleCloudAiplatformV1FeatureValueMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        stringArrayValue: json_.containsKey('stringArrayValue')
            ? GoogleCloudAiplatformV1StringArray.fromJson(
                json_['stringArrayValue']
                    as core.Map<core.String, core.dynamic>)
            : null,
        stringValue: json_.containsKey('stringValue')
            ? json_['stringValue'] as core.String
            : null,
        structValue: json_.containsKey('structValue')
            ? GoogleCloudAiplatformV1StructValue.fromJson(
                json_['structValue'] as core.Map<core.String, core.dynamic>)
            : null,
      );