import 'package:json_annotation/json_annotation.dart'; import 'package:prasule/api/category.dart'; import 'package:prasule/api/entry_data.dart'; part 'multientry.g.dart'; @JsonSerializable() class MultiEntry { EntryType type; List data; DateTime date; WalletCategory category; int id; MultiEntry( {required this.data, required this.type, required this.date, required this.category, required this.id}); factory MultiEntry.fromJson(Map json) => _$MultiEntryFromJson(json); Map toJson() => _$MultiEntryToJson(this); }