toJSON abstract method

dynamic toJSON()

Serializes the model to JSON.

Returns:

  • A map representing the model in JSON format.

Implementation

dynamic toJSON();