toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (name.isNotDefault) 'name': name,
  'displayName': displayName,
  'endpoint': endpoint,
  if (state.isNotDefault) 'state': state.toJson(),
  if (scheduleState.isNotDefault) 'scheduleState': scheduleState.toJson(),
  'latestMonitoringPipelineMetadata': ?latestMonitoringPipelineMetadata
      ?.toJson(),
  'modelDeploymentMonitoringObjectiveConfigs': [
    for (final i in modelDeploymentMonitoringObjectiveConfigs) i.toJson(),
  ],
  'modelDeploymentMonitoringScheduleConfig':
      ?modelDeploymentMonitoringScheduleConfig?.toJson(),
  'loggingSamplingStrategy': ?loggingSamplingStrategy?.toJson(),
  'modelMonitoringAlertConfig': ?modelMonitoringAlertConfig?.toJson(),
  if (predictInstanceSchemaUri.isNotDefault)
    'predictInstanceSchemaUri': predictInstanceSchemaUri,
  if (samplePredictInstance case final $1?)
    'samplePredictInstance': $1.toJson(),
  if (analysisInstanceSchemaUri.isNotDefault)
    'analysisInstanceSchemaUri': analysisInstanceSchemaUri,
  if (bigqueryTables.isNotDefault)
    'bigqueryTables': [for (final i in bigqueryTables) i.toJson()],
  'logTtl': ?logTtl?.toJson(),
  if (labels.isNotDefault) 'labels': labels,
  'createTime': ?createTime?.toJson(),
  'updateTime': ?updateTime?.toJson(),
  'nextScheduleTime': ?nextScheduleTime?.toJson(),
  'statsAnomaliesBaseDirectory': ?statsAnomaliesBaseDirectory?.toJson(),
  'encryptionSpec': ?encryptionSpec?.toJson(),
  if (enableMonitoringPipelineLogs.isNotDefault)
    'enableMonitoringPipelineLogs': enableMonitoringPipelineLogs,
  'error': ?error?.toJson(),
  if (satisfiesPzs.isNotDefault) 'satisfiesPzs': satisfiesPzs,
  if (satisfiesPzi.isNotDefault) 'satisfiesPzi': satisfiesPzi,
};