mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
experimental/web_dashboard fix for deprecated annotations (#1581)
This commit is contained in:
@@ -48,7 +48,7 @@ abstract class EntryApi {
|
|||||||
class Category {
|
class Category {
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(includeFromJson: false)
|
||||||
String? id;
|
String? id;
|
||||||
|
|
||||||
Category(this.name);
|
Category(this.name);
|
||||||
@@ -75,7 +75,7 @@ class Entry {
|
|||||||
@JsonKey(fromJson: _timestampToDateTime, toJson: _dateTimeToTimestamp)
|
@JsonKey(fromJson: _timestampToDateTime, toJson: _dateTimeToTimestamp)
|
||||||
DateTime time;
|
DateTime time;
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(includeFromJson: false)
|
||||||
String? id;
|
String? id;
|
||||||
|
|
||||||
Entry(this.value, this.time);
|
Entry(this.value, this.time);
|
||||||
|
|||||||
Reference in New Issue
Block a user