ordinalGetterSetter property
Add this to your implementation of the getGetterSetterMap function of GenericModel
Implementation
Tuple2<Getter<dynamic>, Setter<dynamic>> get ordinalGetterSetter =>
Tuple2(() => ordinal, (val) => ordinal = val as int? ?? 0);