Skip to content

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

@abhinovpankaj

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.

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