GetMaintenanceWindowExecutionTaskResult.fromJson constructor
GetMaintenanceWindowExecutionTaskResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetMaintenanceWindowExecutionTaskResult.fromJson(
Map<String, dynamic> json) {
return GetMaintenanceWindowExecutionTaskResult(
endTime: timeStampFromJson(json['EndTime']),
maxConcurrency: json['MaxConcurrency'] as String?,
maxErrors: json['MaxErrors'] as String?,
priority: json['Priority'] as int?,
serviceRole: json['ServiceRole'] as String?,
startTime: timeStampFromJson(json['StartTime']),
status: (json['Status'] as String?)?.toMaintenanceWindowExecutionStatus(),
statusDetails: json['StatusDetails'] as String?,
taskArn: json['TaskArn'] as String?,
taskExecutionId: json['TaskExecutionId'] as String?,
taskParameters: (json['TaskParameters'] as List?)
?.whereNotNull()
.map((e) => (e as Map<String, dynamic>).map((k, e) => MapEntry(
k,
MaintenanceWindowTaskParameterValueExpression.fromJson(
e as Map<String, dynamic>))))
.toList(),
type: (json['Type'] as String?)?.toMaintenanceWindowTaskType(),
windowExecutionId: json['WindowExecutionId'] as String?,
);
}