toJson method

Map<String, dynamic> toJson()

Serialise to JSON.

Implementation

Map<String, dynamic> toJson() => {'reason': reason};