unmarshal static method

Box unmarshal(
  1. MarshalledObject marshalled
)

Encoded object parameter is encoded depending on format.

Implementation

static Box unmarshal(MarshalledObject marshalled)
{
  double top = marshalled.getRequired("top").asDouble();
  double right = marshalled.getRequired("right").asDouble();
  double bottom = marshalled.getRequired("bottom").asDouble();
  double left = marshalled.getRequired("left").asDouble();
  return new Box(top, right, bottom, left);
}