IgnoreMapping class
Annotate methods to indicate that you don't want smartstruct to generate a mapping implementation for you
Example
@Mapper()
abstract class UserMapper {
@IgnoreMapping // no method will be generated
static EnumTargetFoo mapFoo(UserSource source) => EnumTargetFoo.ONE; // no static method will be generated
static UserTarget fromSourceStatic(UserSource source) => _$fromSourceStatic(source);
...
}
Constructors
- IgnoreMapping()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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