toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final ruleName = this.ruleName;
  final targetBackupVaultName = this.targetBackupVaultName;
  final completionWindowMinutes = this.completionWindowMinutes;
  final copyActions = this.copyActions;
  final lifecycle = this.lifecycle;
  final recoveryPointTags = this.recoveryPointTags;
  final scheduleExpression = this.scheduleExpression;
  final startWindowMinutes = this.startWindowMinutes;
  return {
    'RuleName': ruleName,
    'TargetBackupVaultName': targetBackupVaultName,
    if (completionWindowMinutes != null)
      'CompletionWindowMinutes': completionWindowMinutes,
    if (copyActions != null) 'CopyActions': copyActions,
    if (lifecycle != null) 'Lifecycle': lifecycle,
    if (recoveryPointTags != null) 'RecoveryPointTags': recoveryPointTags,
    if (scheduleExpression != null) 'ScheduleExpression': scheduleExpression,
    if (startWindowMinutes != null) 'StartWindowMinutes': startWindowMinutes,
  };
}