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