/// <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 Field22Y newInstance(Field22Y source) { Field22Y cp = new Field22Y(); cp.Components = new List <>(source.Components); return(cp); }
public static Field22Y fromJson(string json) { Field22Y field = new Field22Y(); JsonParser parser = new JsonParser(); JsonObject jsonObject = (JsonObject)parser.parse(json); if (jsonObject.get("type") != null) { field.Component1 = jsonObject.get("type").AsString; } return(field); }