enumAsString property

bool enumAsString

By default, all enums are assumed to be delivered as int. However, this requires order to be maintained; additionally some providers deliver enums as String (e.g. {"party", "baseball", ...}). This field value should apply to Iterable and single field types of enum.

The type of this field should be an enum. Defaults to false.

Implementation

bool get enumAsString;