ModelMonitoringJob.fromJson constructor
ModelMonitoringJob.fromJson(
- Object? j
Implementation
factory ModelMonitoringJob.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ModelMonitoringJob(
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
displayName: switch (json['displayName']) {
null => '',
Object $1 => decodeString($1),
},
modelMonitoringSpec: switch (json['modelMonitoringSpec']) {
null => null,
Object $1 => ModelMonitoringSpec.fromJson($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
updateTime: switch (json['updateTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
state: switch (json['state']) {
null => JobState.$default,
Object $1 => JobState.fromJson($1),
},
schedule: switch (json['schedule']) {
null => '',
Object $1 => decodeString($1),
},
jobExecutionDetail: switch (json['jobExecutionDetail']) {
null => null,
Object $1 => ModelMonitoringJobExecutionDetail.fromJson($1),
},
scheduleTime: switch (json['scheduleTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
);
}