BackupSelection.fromJson constructor

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

Implementation

factory BackupSelection.fromJson(Map<String, dynamic> json) {
  return BackupSelection(
    iamRoleArn: json['IamRoleArn'] as String,
    selectionName: json['SelectionName'] as String,
    listOfTags: (json['ListOfTags'] as List?)
        ?.whereNotNull()
        .map((e) => Condition.fromJson(e as Map<String, dynamic>))
        .toList(),
    resources: (json['Resources'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}