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