dataToJson method

  1. @override
Map<String, dynamic> dataToJson(
  1. dynamic data
)

Serializes data into a JSON object This is a simple wrapper on the toJson method on the data class

Implementation

@override
Map<String, dynamic> dataToJson(dynamic data) => data.toJson();