import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; part 'eml_previewer.g.dart'; @JsonSerializable(explicitToJson: true, includeIfNull: false) class EMLPreviewer with EquatableMixin { final String id; final String title; final String content; EMLPreviewer({ required this.id, required this.title, required this.content, }); factory EMLPreviewer.fromJson(Map json) => _$EMLPreviewerFromJson(json); Map toJson() => _$EMLPreviewerToJson(this); @override List get props => [id, title, content]; }