16 lines
411 B
Dart
16 lines
411 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
part 'entry_data.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class EntryData {
|
|
String name;
|
|
String description;
|
|
double amount;
|
|
|
|
EntryData({required this.name, required this.amount, this.description = ""});
|
|
|
|
factory EntryData.fromJson(Map<String, dynamic> json) =>
|
|
_$EntryDataFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$EntryDataToJson(this);
|
|
}
|