toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final copyTags = this.copyTags;
  final createRule = this.createRule;
  final crossRegionCopyRules = this.crossRegionCopyRules;
  final fastRestoreRule = this.fastRestoreRule;
  final name = this.name;
  final retainRule = this.retainRule;
  final shareRules = this.shareRules;
  final tagsToAdd = this.tagsToAdd;
  final variableTags = this.variableTags;
  return {
    if (copyTags != null) 'CopyTags': copyTags,
    if (createRule != null) 'CreateRule': createRule,
    if (crossRegionCopyRules != null)
      'CrossRegionCopyRules': crossRegionCopyRules,
    if (fastRestoreRule != null) 'FastRestoreRule': fastRestoreRule,
    if (name != null) 'Name': name,
    if (retainRule != null) 'RetainRule': retainRule,
    if (shareRules != null) 'ShareRules': shareRules,
    if (tagsToAdd != null) 'TagsToAdd': tagsToAdd,
    if (variableTags != null) 'VariableTags': variableTags,
  };
}