using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
public static void Main()
string json = "{ \"Id\": 1232, \"CurrentValue\": 23.1, \"LimitValue\": 0, \"Type\": 5, \"DebitLockedValue\": 0, \"CreditLockedValue\": 0, \"CreationDate\": \"2022-02-04 12:45:22\", \"UpdateDate\": \"2022-02-04 12:45:22\", \"Bank\": null, \"BankBranch\": null, \"BankAccount\": null, \"BankAccountDigit\": null, \"MaxNumberOfTransfers\": 15, \"Status\": 1, \"BusinessUnitId\": 1, \"AccountHolderId\": 1 }";
Account account = JsonConvert.DeserializeObject<Account>(json);
Console.WriteLine(account.Id);
public long Id { get; set; }
public long AccountHolderId { get; set; }
public long BusinessUnitId { get; set; }
public int Status { get; set; }
public int Type { get; set; }
public long FirstOperationId { get; set; }
public decimal CurrentValue { get; set; }
public decimal DebitLockedValue { get; set; }
public decimal CreditLockedValue { get; set; }
public string Bank { get; set; }
public string BankBranch { get; set; }
public string BankAccount { get; set; }
public string BankAccountDigit { get; set; }
public decimal LimitValue { get; set; }
public int MaxNumberOfTransfers { get; set; }
public bool? GuaranteedWasCredited { get; set; }
public string AccountBranch { get; set; }
public string AccountNumber { get; set; }
public string AccountDigit { get; set; }
public string AddressingKeyType { get; set; }
public string AddressingKey { get; set; }