MaintenanceWindowRunCommandParameters.fromJson constructor

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

Implementation

factory MaintenanceWindowRunCommandParameters.fromJson(
    Map<String, dynamic> json) {
  return MaintenanceWindowRunCommandParameters(
    cloudWatchOutputConfig: json['CloudWatchOutputConfig'] != null
        ? CloudWatchOutputConfig.fromJson(
            json['CloudWatchOutputConfig'] as Map<String, dynamic>)
        : null,
    comment: json['Comment'] as String?,
    documentHash: json['DocumentHash'] as String?,
    documentHashType:
        (json['DocumentHashType'] as String?)?.toDocumentHashType(),
    documentVersion: json['DocumentVersion'] as String?,
    notificationConfig: json['NotificationConfig'] != null
        ? NotificationConfig.fromJson(
            json['NotificationConfig'] as Map<String, dynamic>)
        : null,
    outputS3BucketName: json['OutputS3BucketName'] as String?,
    outputS3KeyPrefix: json['OutputS3KeyPrefix'] as String?,
    parameters: (json['Parameters'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(
            k, (e as List).whereNotNull().map((e) => e as String).toList())),
    serviceRoleArn: json['ServiceRoleArn'] as String?,
    timeoutSeconds: json['TimeoutSeconds'] as int?,
  );
}