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