SerdesGenerator<FieldAnnotation extends FieldSerializable, _SiblingModel extends Model> constructor
SerdesGenerator<FieldAnnotation extends FieldSerializable, _SiblingModel extends Model> (
- ClassElement element,
- FieldsForClass<
FieldAnnotation> fields
A generator that converts raw input into Dart code or Dart code into raw input. Most
Providers will require a SerdesGenerator to help the Repository normalize data.
FieldAnnotation describes the field-level class, such as @Rest
_SiblingModel describes the domain or provider model, such as SqliteModel
Implementation
SerdesGenerator(this.element, this.fields);