From 116030611798bdb81a19c2504f1ad7adb6547725 Mon Sep 17 00:00:00 2001 From: Andrew nuark G Date: Fri, 28 Apr 2023 22:47:55 +0700 Subject: [PATCH] Update on ItemUpdate model --- lib/src/model/item_update.dart | 4 ++-- lib/src/model/item_update.g.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/model/item_update.dart b/lib/src/model/item_update.dart index 72c79cf..b266fd4 100644 --- a/lib/src/model/item_update.dart +++ b/lib/src/model/item_update.dart @@ -9,8 +9,8 @@ part 'item_update.g.dart'; /// * [oldItem] @JsonSerializable() class ItemUpdate { - final Map item; - final Map oldItem; + final Map item; + final Map oldItem; const ItemUpdate({ required this.item, diff --git a/lib/src/model/item_update.g.dart b/lib/src/model/item_update.g.dart index 5e43af1..02e0795 100644 --- a/lib/src/model/item_update.g.dart +++ b/lib/src/model/item_update.g.dart @@ -7,8 +7,8 @@ part of 'item_update.dart'; // ************************************************************************** ItemUpdate _$ItemUpdateFromJson(Map json) => ItemUpdate( - item: Map.from(json['item'] as Map), - oldItem: Map.from(json['oldItem'] as Map), + item: json['item'] as Map, + oldItem: json['oldItem'] as Map, ); Map _$ItemUpdateToJson(ItemUpdate instance) =>