dart_mappable
dart_mappable copied to clipboard
[Feature request] MappableField to work on Mixins or interfaces
trafficstars
i.e:
mixin FooMixin {
@MappableField(key: 'some_new_key')
String get some;
}
@MappableClass()
class Foo with FooMixin, FooMappable {
const Foo({
required this.some,
});
@override
final String some;
}
or
abstract class FooInterface {
SomeInterface({
@MappableField(key: 'some_new_key') required this.some,
});
final String some;
}
@MappableClass()
class Foo with FooMappable implements FooInterface {
const Foo({
required this.some,
});
@override
final String some;
}