toJson abstract method

Map<String, dynamic> toJson()

Serializes to a JSON map with a type discriminator (pi shape).

Implementation

Map<String, dynamic> toJson();