public JObject ToJson() { JObject json = new JObject(); json["transaction_identifier"] = TransactionIdentifier.ToJson(); if (Metadata != null && Metadata.ToJson() != null) { json["metadata"] = Metadata.ToJson(); } return(json); }
public JObject ToJson() { JObject json = new JObject(); json["transaction_identifier"] = TransactionIdentifier.ToJson(); json["operations"] = Operations.Select(p => p.ToJson()).ToArray(); if (Metadata != null && Metadata.ToJson() != null) { json["metadata"] = Metadata.ToJson(); } return(json); }