public JObject ToJson() { JObject json = new JObject(); json["metadata"] = Metadata.ToJson(); if (SuggestedFee != null && SuggestedFee.Length != 0) { json["suggested_fee"] = SuggestedFee.Select(p => p.ToJson()).ToArray(); } return(json); }
public JObject ToJson() { JObject json = new JObject(); json["network_identifier"] = NetworkIdentifier.ToJson(); json["operations"] = Operations.Select(p => p.ToJson()).ToArray(); if (Metadata != null && Metadata.ToJson() != null) { json["metadata"] = Metadata.ToJson(); } return(json); }
public JObject ToJson() { JObject json = new JObject(); json["network_identifier"] = NetworkIdentifier.ToJson(); if (Metadata != null) { json["metadata"] = Metadata.ToJson(); } if (Options != null) { json["options"] = Options.ToJson(); } return(json); }
public JObject ToJson() { JObject json = new JObject(); json["network_identifier"] = NetworkIdentifier.ToJson(); json["operations"] = Operations.Select(p => p.ToJson()).ToArray(); if (Metadata != null && Metadata.ToJson() != null) { json["metadata"] = Metadata.ToJson(); } if (SuggestedFeeMultiplier.HasValue) { json["suggested_fee_multiplier"] = SuggestedFeeMultiplier.Value; } return(json); }