MonitoringScheduleSummary.fromJson constructor

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

Implementation

factory MonitoringScheduleSummary.fromJson(Map<String, dynamic> json) {
  return MonitoringScheduleSummary(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    lastModifiedTime:
        nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object),
    monitoringScheduleArn: json['MonitoringScheduleArn'] as String,
    monitoringScheduleName: json['MonitoringScheduleName'] as String,
    monitoringScheduleStatus:
        (json['MonitoringScheduleStatus'] as String).toScheduleStatus(),
    endpointName: json['EndpointName'] as String?,
    monitoringJobDefinitionName:
        json['MonitoringJobDefinitionName'] as String?,
    monitoringType: (json['MonitoringType'] as String?)?.toMonitoringType(),
  );
}