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