Last active
May 13, 2020 17:53
-
-
Save einarwh/0bd17a2c7c824cf2a1a072c3dd088a2d to your computer and use it in GitHub Desktop.
Serialization of paid cart DTO v2 to JSON text.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var paidCartDto2 = new PaidCart | |
{ | |
PaidItems = new Item[] { | |
new Item { | |
Id = "1bcd", | |
Title = "gizmo" | |
}, | |
new Item { | |
Id = "3cdf", | |
Title = "widget", | |
Description = "A very useful item" | |
} | |
}, | |
Payment = new Money { | |
Mount = 123.5, | |
Currency = "USD" | |
}, | |
Timestamp = "2020-04-11T10:11:33.514+02:00" | |
}; | |
var paidCartDto2JsonText = JsonConvert.SerializeObject(paidCartDto2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment