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