unmarshal static method

EllaDate unmarshal(
  1. MarshalledObject marshalled
)

Encoded object parameter is encoded depending on format.

Implementation

static EllaDate unmarshal(MarshalledObject marshalled)
{
  int year = marshalled.getRequired("year").asInt();
  int month = marshalled.getRequired("month").asInt();
  int day = marshalled.getRequired("day").asInt();
  return new EllaDate(year, month, day);
}