discontinuedPackage generic_enum_example has been discontinued.

jsonEncoded property

String get jsonEncoded

Converts this to a json encoded String.

Implementation

String get jsonEncoded => '{"index":${DpiResolution.values.indexOf(this)}}';