StructForm<K extends Field<V> , V>
extension type
StructForm Structure TypeClass Common viewer interface handle creation, creation here gurantees all keys are 'Struct' keys are present Conversion — bridge to Map (and therefore to serialization)
List<Enum> includes serialization
Combine with Structure extension type, satisfies common data interface and serialization
Structure<PersonField, Object>(personA).valuesAs(PersonField.values).toMap();
- on
-
- List<
K>
- List<
- Implementers
- Available extensions
Constructors
-
StructForm(List<
K> fields) -
const
Methods
-
call(
StructData< K, V> struct) → ({StructData<K, V> data, StructForm<K, V> type}) -
Form(PersonField.values)(personA).toMap(); -
compareTypes(
Iterable< Object?> objects) → bool -
Available on StructForm<
K, V> , provided by the SerializableKeys extension -
entriesFromJson(
Map< String, Object?> json) → Iterable<MapEntry< K, V> > -
Available on StructForm<
K, V> , provided by the SerializableKeys extension -
fromJson(
Map< String, Object?> json) → FieldMap<K, V> -
Available on StructForm<
fromJson common implementation returrns a Map buffer to caller. necessary before the Serializable subtype memory layout is known double buffers, however it should only be a small number of field referenceK, V> , provided by the SerializableKeys extension -
fromJson(
Map< String, Object?> json) → FieldMap<K, Object> -
Available on StructForm<
K, Object> , provided by the SerializableKeysType extension -
mapWithData(
StructData< K, V> struct) → Map<K, V> -
unmapEntriesByName(
Map< String, V> values) → Iterable<MapEntry< K, V> > -
Available on StructForm<
K, V> , provided by the SerializableKeys extension -
validate(
Map< K, V> struct) → Map<K, V> ? -
Available on StructForm<
K, V> , provided by the SerializableKeys extension