SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromJson constructor

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

Implementation

factory SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromJson(
  Map<String, dynamic> json,
) {
  return SearchModelDeploymentMonitoringStatsAnomaliesRequest(
    modelDeploymentMonitoringJob: json['modelDeploymentMonitoringJob'] ?? '',
    deployedModelId: json['deployedModelId'] ?? '',
    featureDisplayName: json['featureDisplayName'] ?? '',
    objectives:
        decodeListMessage(
          json['objectives'],
          SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjective
              .fromJson,
        ) ??
        [],
    pageSize: json['pageSize'] ?? 0,
    pageToken: json['pageToken'] ?? '',
    startTime: decodeCustom(json['startTime'], protobuf.Timestamp.fromJson),
    endTime: decodeCustom(json['endTime'], protobuf.Timestamp.fromJson),
  );
}