public static PricePerUnit Create(ThriftPricePerUnit pricePerUnit)
 {
     return(new PricePerUnit()
     {
         CurrencyCode = pricePerUnit.CurrencyCode,
         Amount = pricePerUnit.Amount
     });
 }
 public static PricePerUnit Create(ThriftPricePerUnit pricePerUnit)
 {
     return(new PricePerUnit(pricePerUnit.Amount ?? 0, pricePerUnit.CurrencyCode));
 }