prasule/lib/api/entry_data.dart
2023-11-01 17:58:05 +01:00

17 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);
}