Example #1
0
        /// <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 Field25A newInstance(Field25A source)
        {
            Field25A cp = new Field25A();

            cp.Components = new List <>(source.Components);
            return(cp);
        }
Example #2
0
        public static Field25A fromJson(string json)
        {
            Field25A   field      = new Field25A();
            JsonParser parser     = new JsonParser();
            JsonObject jsonObject = (JsonObject)parser.parse(json);

            if (jsonObject.get("account") != null)
            {
                field.Component1 = jsonObject.get("account").AsString;
            }
            return(field);
        }