MappableRecord class Records

Used to annotate a record in order to generate mapping code.

Inheritance

Constructors

MappableRecord({CaseStyle? caseStyle, bool? ignoreNull, String? uniqueId, MappingHook? hook, Iterable<MapperBase<Object>>? includeCustomMappers})
const

Properties

caseStyle CaseStyle?
The case style for the map keys.
finalinherited
generateMethods int?
Specify which methods to generate for this class.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hook MappingHook?
Set a custom hook used only for this class.
finalinherited
ignoreNull bool?
If true removes all map keys with null values.
finalinherited
includeCustomMappers Iterable<MapperBase<Object>>?
Specify additional custom mappers that should be included for fields of this class.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uniqueId String?
A unique id representing this class.
finalinherited

Methods

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