Build a resource wrapper from a bare ResourceDataJson (bpg-compatible).
data may also be a plain string (used as the url/src/body value).
Optionaldata: string | Record<string, unknown>Normalise existing ResourceJson wrapper(s) (bpg-compatible). Unknown resource types are dropped (bpg parity: it skips invalid types).
Optionalresource: Record<string, unknown> | Record<string, unknown>[]
bpg-compatible ResourceBuilder: 17
<family>Resource(context, data)methods plus the genericresourceFromResourceJson/resourceFromResourceDataJson.