MaintenanceWindowTarget.fromJson constructor

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

Implementation

factory MaintenanceWindowTarget.fromJson(Map<String, dynamic> json) {
  return MaintenanceWindowTarget(
    description: json['Description'] as String?,
    name: json['Name'] as String?,
    ownerInformation: json['OwnerInformation'] as String?,
    resourceType:
        (json['ResourceType'] as String?)?.toMaintenanceWindowResourceType(),
    targets: (json['Targets'] as List?)
        ?.whereNotNull()
        .map((e) => Target.fromJson(e as Map<String, dynamic>))
        .toList(),
    windowId: json['WindowId'] as String?,
    windowTargetId: json['WindowTargetId'] as String?,
  );
}