dart_mappable_extras library

Classes

BytesMapper
Defined<T>
A type that represents a defined value.
Optional<T>
A type that represents an optional value.
OptionalMapper
A type mapper for the Optional type
RemoveUndefinedFields
A mapping hook that removes undefined fields from the map. This is useful for mapping to JSON where we don't want to include undefined fields in the output. This should be applied to a class that has an Optional field.
Undefined<T>
Union2<X1, X2>
Emulate the union of the types X1 and X2.
Union2Mapper
A Type Mapper for the Union2 type
Union3<X1, X2, X3>
Emulate the union of the types X1, X2, and X3.
Union3Mapper
A Type Mapper for the Union3 type
Union4<X1, X2, X3, X4>
Emulate the union of the types X1 .. X4.
Union4Mapper
A Type Mapper for the Union4 type
Union5<X1, X2, X3, X4, X5>
Emulate the union of the types X1 .. X5.
Union5Mapper
A Type Mapper for the Union5 type
Union6<X1, X2, X3, X4, X5, X6>
Emulate the union of the types X1 .. X6.
Union6Mapper
A Type Mapper for the Union6 type
Union7<X1, X2, X3, X4, X5, X6, X7>
Emulate the union of the types X1 .. X7.
Union7Mapper
A Type Mapper for the Union7 type
Union8<X1, X2, X3, X4, X5, X6, X7, X8>
Emulate the union of the types X1 .. X8.
Union8Mapper
A Type Mapper for the Union8 type
Union9<X1, X2, X3, X4, X5, X6, X7, X8, X9>
Emulate the union of the types X1 .. X9.
Union9Mapper
A Type Mapper for the Union9 type

Constants

unionMappers → const List<MapperBase<Object>>
Type Mappers for all the union types

Exceptions / Errors

InvalidUnionTypeException
Thrown when an invalid union type value is detected.