chadly / Geocoding.net

C# GeoCoding / Address Validation API
MIT License
443 stars 155 forks source link

Added a JsonConstructor attribute #92

Closed codejnki closed 6 years ago

codejnki commented 6 years ago

Working on a project where I am saving the results of the api call as raw JSON and then deserializing them later.

Bounds needed a default constructor and setters so everything would work properly.

codejnki commented 6 years ago

I fixed the tabs so the code lines up.

chadly commented 6 years ago

Not a big fan of changing the readonly nature of the value object. I'd be more keen on just adding a JsonConstructor attribute to the parameterized ctor which would allow it to be serialized/deserialized by JSON.Net.

codejnki commented 6 years ago

Learn something new. How does this look?