GoogleCloudRetailV2Model.fromJson constructor

GoogleCloudRetailV2Model.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2Model.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        dataState: json_.containsKey('dataState')
            ? json_['dataState'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        filteringOption: json_.containsKey('filteringOption')
            ? json_['filteringOption'] as core.String
            : null,
        lastTuneTime: json_.containsKey('lastTuneTime')
            ? json_['lastTuneTime'] as core.String
            : null,
        modelFeaturesConfig: json_.containsKey('modelFeaturesConfig')
            ? GoogleCloudRetailV2ModelModelFeaturesConfig.fromJson(
                json_['modelFeaturesConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        optimizationObjective: json_.containsKey('optimizationObjective')
            ? json_['optimizationObjective'] as core.String
            : null,
        periodicTuningState: json_.containsKey('periodicTuningState')
            ? json_['periodicTuningState'] as core.String
            : null,
        servingConfigLists: json_.containsKey('servingConfigLists')
            ? (json_['servingConfigLists'] as core.List)
                .map((value) =>
                    GoogleCloudRetailV2ModelServingConfigList.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        servingState: json_.containsKey('servingState')
            ? json_['servingState'] as core.String
            : null,
        trainingState: json_.containsKey('trainingState')
            ? json_['trainingState'] as core.String
            : null,
        tuningOperation: json_.containsKey('tuningOperation')
            ? json_['tuningOperation'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );