toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final destinationRegion = this.destinationRegion;
  final manualSnapshotRetentionPeriod = this.manualSnapshotRetentionPeriod;
  final retentionPeriod = this.retentionPeriod;
  final snapshotCopyGrantName = this.snapshotCopyGrantName;
  return {
    if (destinationRegion != null) 'DestinationRegion': destinationRegion,
    if (manualSnapshotRetentionPeriod != null)
      'ManualSnapshotRetentionPeriod': manualSnapshotRetentionPeriod,
    if (retentionPeriod != null) 'RetentionPeriod': retentionPeriod,
    if (snapshotCopyGrantName != null)
      'SnapshotCopyGrantName': snapshotCopyGrantName,
  };
}