internal static CoordSys FromJson(JsonObject json)
{
if (json == null)
{
return null;
}
return new CoordSys
{
Unit = (Unit)Enum.Parse(typeof(Unit), (string)json["unit"], true),
SpatialRefType = (SpatialRefType)Enum.Parse(typeof(SpatialRefType), (string)json["spatialRefType"], true),
PrimeMeridian = PrimeMeridian.FromJson((JsonObject)json["primeMeridian"]),
Name = (string)json["name"],
Type = (CoordSysType)Enum.Parse(typeof(CoordSysType), (string)json["type"], true),
Datum = Datum.FromJson((JsonObject)json["datum"]),
};
}