EntitySupport<T> class
abstract
Base class that holds information about an entity.
Constructors
-
EntitySupport({required String name, required FieldAccessor<
T> keyAccessor, required Map<String, FieldAccessor< fieldAccessors, required List<T> >String> keyFields, required Map<String, Type> fieldTypes, List<Index> indexes = const []})
Properties
-
fieldAccessors
→ Map<
String, FieldAccessor< T> > -
final
-
fields
→ List<
String> -
no setter
-
fieldTypes
→ Map<
String, Type> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
indexes
→ List<
Index> -
final
-
keyAccessor
→ FieldAccessor<
T> -
final
-
keyFields
→ List<
String> -
final
- name → String
-
final
- registry ↔ Registry?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deserialize(
Map< String, dynamic> map) → T -
deserializeDateTime(
dynamic input) → DateTime -
deserializeEntity<
E> (Map< String, dynamic> map) → E -
deserializeEnum<
E> (String value, List< E> values) → E -
getFieldValue(
String fieldName, T entity) → dynamic -
getKey(
T entity) → dynamic -
isKey(
String field) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
T entity) → Map< String, dynamic> -
serializeDynamic(
dynamic value) → dynamic -
serializeEntity<
E> (E? entity) → Map< String, dynamic> ? -
serializeEnum(
dynamic value) → String? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited