Please write a unit test for fromJson and toJson. Also, implement the equality operator on BlendState so you can write the test something like this:

equals(bs1.fromJson(bs2.toJson()), bs2);