toJson method

Map<String, Object?> toJson()

Implementation

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