Raised before the json map is filled with the object fields
json
@override void beforeEncode(Map<String, dynamic> json) {}