public static BlockRequest FromJson(JObject json)
 {
     return(new BlockRequest(NetworkIdentifier.FromJson(json["network_identifier"]),
                             PartialBlockIdentifier.FromJson(json["block_identifier"])));
 }
Exemple #2
0
 public static AccountBalanceRequest FromJson(JObject json)
 {
     return(new AccountBalanceRequest(NetworkIdentifier.FromJson(json["network_identifier"]),
                                      AccountIdentifier.FromJson(json["account_identifier"]),
                                      json.ContainsProperty("block_identifier") ? PartialBlockIdentifier.FromJson(json["block_identifier"]) : null,
                                      json.ContainsProperty("currencies") ? (json["currencies"] as JArray).Select(p => Currency.FromJson(p)).ToArray() : null));
 }
 public static AccountBalanceRequest FromJson(JObject json)
 {
     return(new AccountBalanceRequest(NetworkIdentifier.FromJson(json["network_identifier"]),
                                      AccountIdentifier.FromJson(json["account_identifier"]),
                                      json.ContainsProperty("block_identifier") ? PartialBlockIdentifier.FromJson(json["block_identifier"]) : null));
 }