var object1 = new BaseHeaderRequest();
object1.MarketId = "MarketIdAbc";
object1.StoreId = "10986586";
object1.AcceptLanguage = "en";
string sJson = JsonConvert.SerializeObject(object1);
var object2 = JsonConvert.DeserializeObject<BaseHeaderRequest>(sJson);
Assert.IsTrue(object1.equals(object2));
You should make instance of BaseHeaderRequest and make equals both values at MarketId, StoreId, and AcceptLanguage