public static ThemeGraduatedSymbol FromJson(JsonObject jsonObject)
{
if (jsonObject == null)
{
return null;
}
return new ThemeGraduatedSymbol
{
Caption = (string)jsonObject["caption"],
Filter = (string)jsonObject["filter"],
MaxScale = (double)jsonObject["maxScale"],
MinScale = (double)jsonObject["minScale"],
ForeignDataParam = ForeignDataParam.FromJson((JsonObject)jsonObject["foreignDataParam"]),
DefinitionValue = (double)jsonObject["definitionValue"],
EnableFlow = (bool)jsonObject["enableFlow"],
Expression = (string)jsonObject["expression"],
GraduatedMode = (GraduatedMode)(int)jsonObject["graduatedMode"],
OffsetFixed = (bool)jsonObject["offsetFixed"],
OffsetXExpression = (string)jsonObject["offsetXExpression"],
OffsetYExpression = (string)jsonObject["offsetYExpression"],
OnTop = (bool)jsonObject["onTop"],
ShowNegative = (bool)jsonObject["showNegative"],
StyleForNegative = ServerStyle.FromJson((JsonObject)jsonObject["styleForNegative"]),
StyleForPositive = ServerStyle.FromJson((JsonObject)jsonObject["styleForPositive"]),
};
}