BackupPlan.fromJson constructor
BackupPlan.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BackupPlan.fromJson(Map<String, dynamic> json) {
return BackupPlan(
backupPlanName: json['BackupPlanName'] as String,
rules: (json['Rules'] as List)
.whereNotNull()
.map((e) => BackupRule.fromJson(e as Map<String, dynamic>))
.toList(),
advancedBackupSettings: (json['AdvancedBackupSettings'] as List?)
?.whereNotNull()
.map((e) => AdvancedBackupSetting.fromJson(e as Map<String, dynamic>))
.toList(),
);
}