toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {'level': level.name, 'reason': reason};