unignoredFields property

Iterable<FieldElement> get unignoredFields
inherited

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

Implementation

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

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