toJson method

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

Serializes this instance to a JSON object.

Implementation

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