SearchModelMonitoringAlertsRequest.fromJson constructor
SearchModelMonitoringAlertsRequest.fromJson(
- Object? j
Implementation
factory SearchModelMonitoringAlertsRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SearchModelMonitoringAlertsRequest(
modelMonitor: switch (json['modelMonitor']) {
null => '',
Object $1 => decodeString($1),
},
modelMonitoringJob: switch (json['modelMonitoringJob']) {
null => '',
Object $1 => decodeString($1),
},
alertTimeInterval: switch (json['alertTimeInterval']) {
null => null,
Object $1 => Interval.fromJson($1),
},
statsName: switch (json['statsName']) {
null => '',
Object $1 => decodeString($1),
},
objectiveType: switch (json['objectiveType']) {
null => '',
Object $1 => decodeString($1),
},
pageSize: switch (json['pageSize']) {
null => 0,
Object $1 => decodeInt($1),
},
pageToken: switch (json['pageToken']) {
null => '',
Object $1 => decodeString($1),
},
);
}