core.Map<core.String, core.dynamic> toJson() => { if (retentionCount != null) 'retentionCount': retentionCount!, if (totalRetentionCount != null) 'totalRetentionCount': totalRetentionCount!, };