toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final backupPlanName = this.backupPlanName;
  final rules = this.rules;
  final advancedBackupSettings = this.advancedBackupSettings;
  return {
    'BackupPlanName': backupPlanName,
    'Rules': rules,
    if (advancedBackupSettings != null)
      'AdvancedBackupSettings': advancedBackupSettings,
  };
}