toJSON method

  1. @override
dynamic toJSON(
  1. Int64 object,
  2. SerializationContext context
)

Implementation

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