SearchModelMonitoringStatsRequest.fromJson constructor

SearchModelMonitoringStatsRequest.fromJson(
  1. Object? j
)

Implementation

factory SearchModelMonitoringStatsRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SearchModelMonitoringStatsRequest(
    modelMonitor: switch (json['modelMonitor']) {
      null => '',
      Object $1 => decodeString($1),
    },
    statsFilter: switch (json['statsFilter']) {
      null => null,
      Object $1 => SearchModelMonitoringStatsFilter.fromJson($1),
    },
    timeInterval: switch (json['timeInterval']) {
      null => null,
      Object $1 => Interval.fromJson($1),
    },
    pageSize: switch (json['pageSize']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
    pageToken: switch (json['pageToken']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}