Field constructor

const Field(
  1. String key
)

The annotation for a field to set the key for the field.

The key can also be set using JsonKey from json_serializable.

Implementation

const Field(this.key);