Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapper file is not generated if mapping is done with a RealmObject #89

Open
abhinovpankaj opened this issue Apr 29, 2023 · 0 comments
Open

Comments

@abhinovpankaj
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant