toJson method

Object toJson()

Implementation

Object toJson() => throw UnimplementedError(
    'Each case has its own implementation of toJson');