Maps<V, T extends SchemaType<V>> class

A Schemake type matching a Dart Map from String to some known type V.

Inheritance

Constructors

Maps(String name, {required T valueType, String description = '', UnknownPropertiesStrategy unknownPropertiesStrategy = UnknownPropertiesStrategy.keep})
const

Properties

description String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unknownPropertiesStrategy UnknownPropertiesStrategy
finalinherited
valueType → T
final

Methods

bind(Stream<Object?> stream) Stream<Map<String, V>>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
checkRequiredProperties(Iterable<String> providedProperties) → void
Check whether all required properties have been provided, raising a MissingPropertyException if not.
inherited
convert(Object? input) Map<String, V>
Converts input and returns the result of the conversion.
override
convertProperty<V>(Converter<Object?, V> converter, String name, Map<Object?, Object?> map) → V
Convert a property to its expected value.
inherited
convertPropertyOrDefault<V>(Converter<Object?, V> converter, String name, Map<Object?, Object?> map, V defaultValue) → V
Convert a property to its expected value or returns a default value in case the property is not present.
inherited
convertToMap(Object? input) Map<String, Object?>
Convert a value to Map, enforcing any restrictions imposed by this type.
inherited
dartType() Type
inherited
fuse<TT>(Converter<Map<String, V>, TT> other) Converter<Object?, TT>
Fuses this with other.
inherited
getPropertyConverter(String property) Converter<Object?, V>
Get the Converter for the property of this object with the given name.
override
getRequiredProperties() Iterable<String>
Get all required (non-nullable properties without default values) properties of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<Map<String, V>> sink) Sink<Object?>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited

Operators

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