Enumerated constructor

const Enumerated(
  1. EnumType type, [
  2. String? property
])

Annotation to specify how an enum property should be serialized.

Implementation

const Enumerated(this.type, [this.property]);