Map<String, Object?> encode() => { 'max_retention_days': maxRetentionDays.toTfJson(), if (onSourceDiskDelete != null) 'on_source_disk_delete': onSourceDiskDelete!.toTfJson(), };