MaintenanceWindowTask.fromJson constructor
MaintenanceWindowTask.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MaintenanceWindowTask.fromJson(Map<String, dynamic> json) {
return MaintenanceWindowTask(
description: json['Description'] as String?,
loggingInfo: json['LoggingInfo'] != null
? LoggingInfo.fromJson(json['LoggingInfo'] as Map<String, dynamic>)
: null,
maxConcurrency: json['MaxConcurrency'] as String?,
maxErrors: json['MaxErrors'] as String?,
name: json['Name'] as String?,
priority: json['Priority'] as int?,
serviceRoleArn: json['ServiceRoleArn'] as String?,
targets: (json['Targets'] as List?)
?.whereNotNull()
.map((e) => Target.fromJson(e as Map<String, dynamic>))
.toList(),
taskArn: json['TaskArn'] as String?,
taskParameters: (json['TaskParameters'] as Map<String, dynamic>?)?.map(
(k, e) => MapEntry(
k,
MaintenanceWindowTaskParameterValueExpression.fromJson(
e as Map<String, dynamic>))),
type: (json['Type'] as String?)?.toMaintenanceWindowTaskType(),
windowId: json['WindowId'] as String?,
windowTaskId: json['WindowTaskId'] as String?,
);
}