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