smartstruct
smartstruct copied to clipboard
Mapper file is not generated if mapping is done with a RealmObject
I am trying to generate mapper using this lb but not file is getting generated. Perhaps doesn't work with Realm Code:
import 'package:deckinspectors/src/models/project_model.dart';
import 'package:deckinspectors/src/models/realm/realm_schemas.dart';
import 'package:smartstruct/smartstruct.dart';
@Mapper()
abstract class ChildMapper {
Child? fromLocalChild(LocalChild? localChild);
LocalChild fromChild(Child project);
}
Here, LocalChild class is a Realm generated.