internal static PrjCoordSys FromJson(JsonObject json)
{
if (json == null)
{
return null;
}
PrjCoordSys coorSys = new PrjCoordSys();
coorSys.CoordUnit = (Unit)Enum.Parse(typeof(Unit), (string)json["coordUnit"], true);
coorSys.Name = (string)json["name"];
coorSys.Projection = Projection.FromJson((JsonObject)json["projection"]);
coorSys.CoordSystem = CoordSys.FromJson((JsonObject)json["coordSystem"]);
coorSys.DistanceUnit = (Unit)Enum.Parse(typeof(Unit), (string)json["distanceUnit"], true);
coorSys.ProjectionParam = PrjParameter.FromJson((JsonObject)json["projectionParam"]);
//Type = (string)json["type"],
if (json["type"] != null)
{
coorSys.Type = (PrjCoordSysType)Enum.Parse(typeof(PrjCoordSysType), json["type"], true);
}
coorSys.EpsgCode = (int)json["epsgCode"];
return coorSys;
}