FlintModelRecord class
Lightweight browser-side record that mirrors a FlintDart model payload.
Do not import server-side Model classes into browser UI code. Those
classes depend on database/server APIs. Use this record, a typed DTO, or a
generated client model instead.
Constructors
-
FlintModelRecord(Map<
String, dynamic> attributes) -
Creates a model record from JSON.
const
Properties
-
attributes
→ Map<
String, dynamic> -
Raw model attributes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Object?
-
Common model id field.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decimal(
String key) → double? - Reads an attribute as a double.
-
integer(
String key) → int? - Reads an attribute as an integer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
string(
String key) → String? - Reads an attribute as a string.
-
toMap(
) → Map< String, dynamic> - Converts this record back to a map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → Object? -
Reads a raw attribute by
key.