discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

SeatingComponent class

How many people a servable symbol seats (spec 14 S1, R-1, R-2).

A new component type, not a field on SymbolComponent: an older build preserves an unknown component type verbatim and would drop an unknown field (spec 14 F-5), so adding it needs no schema bump.

Immutable and value-equal; toJson has one fixed key. Not a parametric type: it generates nothing.

Constructors

SeatingComponent({required int seats})
Throws ArgumentError (not an assert: a release build must refuse too) when seats is below 1.

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seats → int
final
typeId → String
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → SeatingComponent
Throws FormatException when seats is missing or not an integer, and ArgumentError when it is below 1.
register(ComponentRegistry registry) → void
Registers the type. Once per registry: register replaces the store for the type, so a second call drops every live seating component.

Constants

componentTypeId → const String