Exemplo n.º 1
0
        public JSONObject ToJson()
        {
            var obj = new JSONObject();

            obj.Add(nameof(Id), new JSONString(Id));
            obj.Add(nameof(Name), new JSONString(Name));
            obj.Add(nameof(Uri), new JSONString(Uri));
            obj.Add(nameof(StartIndex), new JSONNumber(StartIndex));
            obj.Add(nameof(EndIndex), new JSONNumber(EndIndex));
            obj.Add(nameof(IsAnimated), new JSONBool(IsAnimated));
            obj.Add(nameof(Bits), new JSONNumber(Bits));
            obj.Add(nameof(Color), new JSONString(Color));
            obj.Add(nameof(Type), new JSONString(Type.ToString()));
            obj.Add(nameof(UVs), UVs.ToJson());
            return(obj);
        }