GenModel class

Constructors

GenModel({required String name, required String pluralName, required String description, required List<GenField> fields, required Set<String> serverAssignedFields, Set<String> redactedFields = const {}})

Properties

description → String
final
fields → List<GenField>
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
pluralName → String
final
readableFields → List<GenField>
Fields that appear on reads (everything but writeOnly/serverOnly).
no setter
redactedFields → Set<String>
Fields redacted from every read (writeOnly/serverOnly markers) — excluded from the generated model class, fromJson, and toJson.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverAssignedFields → Set<String>
Fields the server assigns at create (owner bindings) or marks readOnly/serverOnly — excluded from generated writes.
final
surfacedFields → List<GenField>
Fields with any generated surface at all: readable or writable (everything but serverOnly).
no setter
writableFields → List<GenField>
Fields client code may set on create/update. Read-time-default fields are ordinary writable fields (the server enforces required on them); writeOnly fields are writable even though reads redact them.
no setter

Methods

field(String name) → GenField?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited