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