smartstruct icon indicating copy to clipboard operation
smartstruct copied to clipboard

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

Open abhinovpankaj opened this issue 2 years ago • 0 comments

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.

abhinovpankaj avatar Apr 29 '23 11:04 abhinovpankaj