public class ExpenditureType {
public string AmountUSD { get; set; }
public string Currency { get; set; }
public string AmountLocal { get; set; }
public bool IsPayment { get; set; }
public ExpenditureType() {}
public ExpenditureType(string amountUSD, string currency, string amountLocal, bool isPayment) {
this.AmountUSD = amountUSD;
this.Currency = currency;
this.AmountLocal = amountLocal;
this.IsPayment = isPayment;
public class TravelExpenditures {
public ExpenditureType Hotel { get; set; }
public ExpenditureType Tickets { get; set; }
public ExpenditureType Taxi { get; set; }
public TravelExpenditures() {}
public TravelExpenditures(ExpenditureType hotel, ExpenditureType tickets, ExpenditureType taxi) {
public static void Main()
ExpenditureType hotel = new ExpenditureType("560", "UAH", "1300", false);
ExpenditureType tickets = new ExpenditureType("60", "USD", "300", true);
ExpenditureType taxi = new ExpenditureType("0.00", "", "0.00", false);
TravelExpenditures t = new TravelExpenditures(hotel, tickets, taxi);
string json = JsonConvert.SerializeObject(t);
Console.WriteLine(t.Hotel.AmountLocal);