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