EntityContext class
Template-ready representation of a single named response entity.
Used in multi-response mode to drive per-entity file generation and to build deduplicated import lists in templates.
Constructors
-
EntityContext({required String name, required String nameLower, required String nameCamelCase, required bool isList, required List<
NestedContextField> fields})
Properties
-
fields
→ List<
NestedContextField> -
Flat + nested fields for this entity (same shape as Context.fields).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isList → bool
-
True when the response was array-wrapped (
["user"]).final - name → String
-
PascalCase name, e.g.
"User".final - nameCamelCase → String
-
camelCase name, e.g.
"user".final - nameLower → String
-
lowercase name, e.g.
"user".final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited