Skip to content

Add new annotation to specify enum value in serialized json #38

Closed
@ranquild

Description

@ranquild

There is case when enum name in dart and in json does not match, it would be nice to have construction like this:

enum FieldType {
  @JsonEnum('Text)
  text,
  @JsonEnum('Number')
  number
}

to solve those issues.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions