Primary constructor body support. toJson/fromJson support.