toJson method

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

Serialization to a JSON map.

Implementation

@override
Map<String, dynamic> toJson() => {'id': id};