toJSON method

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

Implementation

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