Skip to content

Instantly share code, notes, and snippets.

@ByteDev
Created September 22, 2021 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ByteDev/f52e85858609dd7490f5184312f702d8 to your computer and use it in GitHub Desktop.
Save ByteDev/f52e85858609dd7490f5184312f702d8 to your computer and use it in GitHub Desktop.
using System.Text.Json.Serialization;

// ...

public class AddressRequest
{
    [JsonPropertyName("addressId")]
    public int Id { get; set; }

    [JsonPropertyName("addressLine1")]
    public string AddressLine1 { get; set; }

    [JsonPropertyName("addressLine2")]
    public string AddressLine2 { get; set; }

    [JsonPropertyName("addressCity")]
    public string City { get; set; }
	
    // ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment