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