withJson static method

PortalItem? withJson(
  1. String json, {
  2. required Portal portal,
})

Creates a portal item from the specified JSON string and portal.

Parameters:

  • json — The JSON representation of the portal item.
  • portal — The portal.