toJson method
Converts this object to json representation.
Implementation
@override
Map<String, Object?> toJson() {
return <String, Object?>{
InsanichessGameEventJsonKey.type: type.toJson(),
InsanichessGameEventJsonKey.color: player.toJson(),
};
}