toJSON method
Implementation
@override
dynamic toJSON(Int32 object, SerializationContext context) {
return object is Int32 ? object.toInt() : object;
}
@override
dynamic toJSON(Int32 object, SerializationContext context) {
return object is Int32 ? object.toInt() : object;
}