/// <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 Field270 newInstance(Field270 source)
        {
            Field270 cp = new Field270();

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

            if (jsonObject.get("timestamp") != null)
            {
                field.setComponent1(jsonObject.get("timestamp").AsString);
            }
            if (jsonObject.get("loginBlock") != null)
            {
                field.Component2 = jsonObject.get("loginBlock").AsString;
            }
            return(field);
        }