1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

experimental/web_dashboard fix for deprecated annotations (#1581)

This commit is contained in:
Brett Morgan
2023-01-20 14:29:07 +11:00
committed by GitHub
parent 7739686105
commit e2a6ac66d3

View File

@@ -48,7 +48,7 @@ abstract class EntryApi {
class Category {
String name;
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false)
String? id;
Category(this.name);
@@ -75,7 +75,7 @@ class Entry {
@JsonKey(fromJson: _timestampToDateTime, toJson: _dateTimeToTimestamp)
DateTime time;
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false)
String? id;
Entry(this.value, this.time);