Adds support for the json_serializable package.
json_serializable
Object? toJson(Object? Function(T v) toJsonT);