tarb/betfair_data

Object creation support - create constructor or turn to DataClass?

varneyo opened this issue · 0 comments

Again apologies if this is just a knowledge thing, but can we create object directly by passing in values?
i.e. passing a native betfairlightweight objects raw dict data

new_market_book = bflw.MarketBook(**market_book._data)

gives TypeError: No constructor defined

kind of raises the question should we be able to create objects or is there no need with the native bflw library avilable.