/// <summary> /// Copy constructor.<br> /// Initializes the components list with a deep copy of the source components list. </summary> /// <param name="source"> a field instance to copy /// @since 7.7 </param> public static Field204 newInstance(Field204 source) { Field204 cp = new Field204(); cp.Components = new List <>(source.Components); return(cp); }
public static Field204 fromJson(string json) { Field204 field = new Field204(); JsonParser parser = new JsonParser(); JsonObject jsonObject = (JsonObject)parser.parse(json); if (jsonObject.get("logicalTerminalSelectState") != null) { field.Component1 = jsonObject.get("logicalTerminalSelectState").AsString; } return(field); }