OutlierDetection.fromJson constructor

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

Implementation

factory OutlierDetection.fromJson(Map<String, dynamic> json) {
  return OutlierDetection(
    baseEjectionDuration: Duration.fromJson(
        json['baseEjectionDuration'] as Map<String, dynamic>),
    interval: Duration.fromJson(json['interval'] as Map<String, dynamic>),
    maxEjectionPercent: json['maxEjectionPercent'] as int,
    maxServerErrors: json['maxServerErrors'] as int,
  );
}