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