unmarshal static method

LatLon unmarshal(
  1. MarshalledObject marshalled
)

Encoded object parameter is encoded depending on format.

Implementation

static LatLon unmarshal(MarshalledObject marshalled)
{
  double x = marshalled.getRequired("lat").asDouble();
  double y = marshalled.getRequired("lon").asDouble();
  return new LatLon(x, y);
}