unmarshal static method

Size unmarshal(
  1. MarshalledObject marshalled
)

Encoded object parameter is encoded depending on format.

Implementation

static Size unmarshal(MarshalledObject marshalled)
{
  double width = marshalled.getRequired("width").asDouble();
  double height = marshalled.getRequired("height").asDouble();
  return new Size(width, height);
}