inheritedFields property
List<SerializableModelFieldDefinition>
get
inheritedFields
Returns a list of all fields in the parent class. If there is no parent class, an empty list is returned. Excludes the id field, as it is re-declared on child classes.
Implementation
List<SerializableModelFieldDefinition> get inheritedFields =>
parentClass?.fieldsIncludingInherited
.where((element) => tableName == null || element.name != 'id')
.toList() ??
[];