enumAsString property

  1. @override
bool enumAsString
final

By default, all enums from REST are assumed to be delivered as int. For APIs that deliver enums as String (e.g. {"party", "baseball", ...}). Works for Iterable and single field types of enum.

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

Implementation

@override
final bool enumAsString;