GoogleCloudContentwarehouseV1PropertyDefinition.fromJson constructor

GoogleCloudContentwarehouseV1PropertyDefinition.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContentwarehouseV1PropertyDefinition.fromJson(core.Map json_)
    : this(
        dateTimeTypeOptions: json_.containsKey('dateTimeTypeOptions')
            ? GoogleCloudContentwarehouseV1DateTimeTypeOptions.fromJson(
                json_['dateTimeTypeOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        enumTypeOptions: json_.containsKey('enumTypeOptions')
            ? GoogleCloudContentwarehouseV1EnumTypeOptions.fromJson(
                json_['enumTypeOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        floatTypeOptions: json_.containsKey('floatTypeOptions')
            ? GoogleCloudContentwarehouseV1FloatTypeOptions.fromJson(
                json_['floatTypeOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        integerTypeOptions: json_.containsKey('integerTypeOptions')
            ? GoogleCloudContentwarehouseV1IntegerTypeOptions.fromJson(
                json_['integerTypeOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        isFilterable: json_.containsKey('isFilterable')
            ? json_['isFilterable'] as core.bool
            : null,
        isMetadata: json_.containsKey('isMetadata')
            ? json_['isMetadata'] as core.bool
            : null,
        isRepeatable: json_.containsKey('isRepeatable')
            ? json_['isRepeatable'] as core.bool
            : null,
        isRequired: json_.containsKey('isRequired')
            ? json_['isRequired'] as core.bool
            : null,
        isSearchable: json_.containsKey('isSearchable')
            ? json_['isSearchable'] as core.bool
            : null,
        mapTypeOptions: json_.containsKey('mapTypeOptions')
            ? GoogleCloudContentwarehouseV1MapTypeOptions.fromJson(
                json_['mapTypeOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        propertyTypeOptions: json_.containsKey('propertyTypeOptions')
            ? GoogleCloudContentwarehouseV1PropertyTypeOptions.fromJson(
                json_['propertyTypeOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        retrievalImportance: json_.containsKey('retrievalImportance')
            ? json_['retrievalImportance'] as core.String
            : null,
        schemaSources: json_.containsKey('schemaSources')
            ? (json_['schemaSources'] as core.List)
                .map((value) =>
                    GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        textTypeOptions: json_.containsKey('textTypeOptions')
            ? GoogleCloudContentwarehouseV1TextTypeOptions.fromJson(
                json_['textTypeOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        timestampTypeOptions: json_.containsKey('timestampTypeOptions')
            ? GoogleCloudContentwarehouseV1TimestampTypeOptions.fromJson(
                json_['timestampTypeOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );