toJson method

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

Serializes an object

Implementation

@override
Map<String, dynamic> toJson() =>
    {'a': a.toJson(), 'b': b.toJson(), 'weight': weight};