diff --git a/src/Bitbucket.Cloud.Net/Models/v2/BranchRestriction.cs b/src/Bitbucket.Cloud.Net/Models/v2/BranchRestriction.cs index f2ab67c..9c76614 100644 --- a/src/Bitbucket.Cloud.Net/Models/v2/BranchRestriction.cs +++ b/src/Bitbucket.Cloud.Net/Models/v2/BranchRestriction.cs @@ -20,9 +20,9 @@ public class BranchRestriction public IEnumerable Groups { get; set; } - [JsonProperty("branch_type")] + [JsonProperty("branch_type", DefaultValueHandling = DefaultValueHandling.Ignore)] [JsonConverter(typeof(BranchTypesConverter))] - public BranchTypes BranchType { get; set; } + public BranchTypes? BranchType { get; set; } public string Type { get; set; } public int Id { get; set; }