ModelMonitoringJob.fromJson constructor

ModelMonitoringJob.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ModelMonitoringJob.fromJson(Map<String, dynamic> json) {
  return ModelMonitoringJob(
    name: json['name'] ?? '',
    displayName: json['displayName'] ?? '',
    modelMonitoringSpec: decode(
      json['modelMonitoringSpec'],
      ModelMonitoringSpec.fromJson,
    ),
    createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
    updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
    state: decodeEnum(json['state'], JobState.fromJson) ?? JobState.$default,
    schedule: json['schedule'] ?? '',
    jobExecutionDetail: decode(
      json['jobExecutionDetail'],
      ModelMonitoringJobExecutionDetail.fromJson,
    ),
    scheduleTime: decodeCustom(
      json['scheduleTime'],
      protobuf.Timestamp.fromJson,
    ),
  );
}