JsonField<S> class
final
JSON-object descriptor (Map<String, Object?>), optional by definition.
There is no .req()/required flag: the database's Field.json has no
required parameter. (The raw path also admits a List — a documented
asymmetry; the typed surface is the stricter one.)
Constructors
Properties
-
asc
→ OrderTerm<
S> -
Ascending order term for this field.
no setterinherited
-
desc
→ OrderTerm<
S> -
Descending order term for this field.
no setterinherited
- encrypted → bool
-
Whether the value is encrypted at rest.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Column / record key name.
finalinherited
- owner → S
-
The store definition this field belongs to.
finalinherited
-
reqCounterpart
→ FieldDef<
S, Object?> ? -
The required counterpart of an optional descriptor after
req(); null otherwise. Bookkeeping forStoreDef.verify()(omitted-field check) — consumers never need it.no setterinherited - required → bool
-
Whether the field must hold a non-null value.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
between(
Map< String, Object?> ? a, Map<String, Object?> ? b) → FieldCond<S> -
field BETWEEN a AND b— inclusive on both ends. For a half-open window usegte(a)withlt(b). Anullbound is rejected: it would compile to SQL that never matches.inherited -
decode(
Object? raw) → Map< String, Object?> ? -
Decodes a raw stored value into
T.inherited -
encode(
Map< String, Object?> ? value) → Object? -
Encodes a value of type
Tinto its raw logical-map form.inherited -
eq(
Map< String, Object?> ? value) → FieldCond<S> -
field == value. For an optional field,eq(null)reads as SQLIS NULL(the typed layer routes it there; SQL= NULLnever matches); on a required field the null case is a compile error.inherited -
eqOrNull(
Map< String, Object?> ? value) → Cond<S> -
Matches rows where this field equals
valueor isNULL.inherited -
inValues(
List< Map< values) → FieldCond<String, Object?> ?>S> -
field IN (values). The list must not be empty — the database would otherwise emit invalid SQL. Anullmember is rejected: SQLIN (NULL)never matches, so the condition would silently shrink the result set (eq(null)has real IS NULL semantics;inValuesdoes not).inherited -
isNull(
) → FieldCond< S> -
SQL
IS NULL.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toField(
) → Field -
Builds the database
Fieldthis descriptor maps to — the single place the kind →Fieldfactory mapping lives, so constraints can never diverge.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited