25 lines
616 B
Dart
25 lines
616 B
Dart
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<EntryData> 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<String, dynamic> json) =>
|
|
_$MultiEntryFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$MultiEntryToJson(this);
|
|
}
|