MonitoringExecutionSummary.fromJson constructor

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

Implementation

factory MonitoringExecutionSummary.fromJson(Map<String, dynamic> json) {
  return MonitoringExecutionSummary(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    lastModifiedTime:
        nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object),
    monitoringExecutionStatus:
        (json['MonitoringExecutionStatus'] as String).toExecutionStatus(),
    monitoringScheduleName: json['MonitoringScheduleName'] as String,
    scheduledTime:
        nonNullableTimeStampFromJson(json['ScheduledTime'] as Object),
    endpointName: json['EndpointName'] as String?,
    failureReason: json['FailureReason'] as String?,
    monitoringJobDefinitionName:
        json['MonitoringJobDefinitionName'] as String?,
    monitoringType: (json['MonitoringType'] as String?)?.toMonitoringType(),
    processingJobArn: json['ProcessingJobArn'] as String?,
  );
}