unmarshal static method

RgbColour unmarshal(
  1. MarshalledObject marshalled
)

Encoded object parameter is encoded depending on format.

Implementation

static RgbColour unmarshal(MarshalledObject marshalled)
{
  int red = marshalled.getRequired("r").asInt();
  int green = marshalled.getRequired("g").asInt();
  int blue = marshalled.getRequired("b").asInt();
  return new RgbColour(red, green, blue);
}