Skip to content

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

Description

@abhinovpankaj

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions