Exemplo n.º 1
0
        public JObject ToJson()
        {
            JObject json = new JObject();

            if (AccountIdentifier != null)
            {
                json["account_identifier"] = AccountIdentifier.ToJson();
            }
            json["hex_bytes"]      = HexBytes;
            json["signature_type"] = SignatureType.AsString();
            return(json);
        }
        public JObject ToJson()
        {
            JObject json = new JObject();

            if (AccountIdentifier != null && AccountIdentifier.ToJson() != null)
            {
                json["account_identifier"] = AccountIdentifier.ToJson();
            }
            if (Metadata != null && Metadata.ToJson() != null)
            {
                json["metadata"] = Metadata.ToJson();
            }
            return(json);
        }