MonitoringBaselineConfig.fromJson constructor

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

Implementation

factory MonitoringBaselineConfig.fromJson(Map<String, dynamic> json) {
  return MonitoringBaselineConfig(
    baseliningJobName: json['BaseliningJobName'] as String?,
    constraintsResource: json['ConstraintsResource'] != null
        ? MonitoringConstraintsResource.fromJson(
            json['ConstraintsResource'] as Map<String, dynamic>)
        : null,
    statisticsResource: json['StatisticsResource'] != null
        ? MonitoringStatisticsResource.fromJson(
            json['StatisticsResource'] as Map<String, dynamic>)
        : null,
  );
}