unignoredFields property

  1. @override
Iterable<FieldElement> get unignoredFields

All fields that are serializable by this generator and are not declared to be ignored by an annotation.

Implementation

@override
Iterable<FieldElement> get unignoredFields {
  return fields.stableInstanceFields.where((field) {
    final annotation = fields.annotationForField(field);
    final checker = checkerForType(field.type);

    return !annotation.ignore &&
        (checker.isSerializable || checker.isSerializableViaJson(doesDeserialize));
  });
}