Lucas B Francelino
Lucas B Francelino
> Enums are a bit difficult to support at the moment, because the ODM is unaware of how they are serialized > > We can start with supporting only the...
This can work: ``` enum Soccer { maradona(1), pele(2), messi(3), ronaldo(4), cristianoRonaldo(5); final int value; const Soccer(this.value); factory Soccer.getEnum(int _value){ for (var element in Soccer.values) { if (element.value == _value)...
Actually, we doesnt even have to override the toString method, one can just use enum.name in the code.
I have the same issue. The script fail to import subcollections