ModelDeploymentMonitoringScheduleConfig.fromJson constructor

ModelDeploymentMonitoringScheduleConfig.fromJson(
  1. Object? j
)

Implementation

factory ModelDeploymentMonitoringScheduleConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ModelDeploymentMonitoringScheduleConfig(
    monitorInterval: switch (json['monitorInterval']) {
      null => null,
      Object $1 => protobuf.Duration.fromJson($1),
    },
    monitorWindow: switch (json['monitorWindow']) {
      null => null,
      Object $1 => protobuf.Duration.fromJson($1),
    },
  );
}