GetMaintenanceWindowTaskResult.fromJson constructor

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

Implementation

factory GetMaintenanceWindowTaskResult.fromJson(Map<String, dynamic> json) {
  return GetMaintenanceWindowTaskResult(
    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?,
    taskInvocationParameters: json['TaskInvocationParameters'] != null
        ? MaintenanceWindowTaskInvocationParameters.fromJson(
            json['TaskInvocationParameters'] as Map<String, dynamic>)
        : null,
    taskParameters: (json['TaskParameters'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(
            k,
            MaintenanceWindowTaskParameterValueExpression.fromJson(
                e as Map<String, dynamic>))),
    taskType: (json['TaskType'] as String?)?.toMaintenanceWindowTaskType(),
    windowId: json['WindowId'] as String?,
    windowTaskId: json['WindowTaskId'] as String?,
  );
}