// it's from domain layer. (have not to use data layer library)
class NoteBookModel {
final String title;
final int? totalPage;
final List? subTitles;
final Url? thumbnailImg;
}
@Entity(tableName: 'notebook', primaryKeys: ['title'])
class NoteBookEntity extends NoteBookModel {
@override
@TypeConverters([SubTitleListConverter])
final List? subTitles;
@override
@ignore
final Url? thumbnailImg;
}
I don't want to put @ignore metadata in the Model, but
Otherwise, the example entity will not be generated properly.
simple examples
// it's from domain layer. (have not to use data layer library) class NoteBookModel { final String title; final int? totalPage; final List? subTitles;
final Url? thumbnailImg;
}
@Entity(tableName: 'notebook', primaryKeys: ['title']) class NoteBookEntity extends NoteBookModel { @override @TypeConverters([SubTitleListConverter]) final List? subTitles;
@override
@ignore
final Url? thumbnailImg;
}
I don't want to put @ignore metadata in the Model, but Otherwise, the example entity will not be generated properly.