GoogleCloudContentwarehouseV1Value.fromJson constructor

GoogleCloudContentwarehouseV1Value.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContentwarehouseV1Value.fromJson(core.Map json_)
    : this(
        booleanValue: json_.containsKey('booleanValue')
            ? json_['booleanValue'] as core.bool
            : null,
        datetimeValue: json_.containsKey('datetimeValue')
            ? GoogleTypeDateTime.fromJson(
                json_['datetimeValue'] as core.Map<core.String, core.dynamic>)
            : null,
        enumValue: json_.containsKey('enumValue')
            ? GoogleCloudContentwarehouseV1EnumValue.fromJson(
                json_['enumValue'] as core.Map<core.String, core.dynamic>)
            : null,
        floatValue: json_.containsKey('floatValue')
            ? (json_['floatValue'] as core.num).toDouble()
            : null,
        intValue: json_.containsKey('intValue')
            ? json_['intValue'] as core.int
            : null,
        stringValue: json_.containsKey('stringValue')
            ? json_['stringValue'] as core.String
            : null,
        timestampValue: json_.containsKey('timestampValue')
            ? GoogleCloudContentwarehouseV1TimestampValue.fromJson(
                json_['timestampValue']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );