toJson method

Map<String, dynamic> toJson()

This returns a JSON representation of this discovery.

Implementation

Map<String, dynamic> toJson() => _discoveryAction.toJson()..['type'] = type;