23 lines
495 B
Dart
23 lines
495 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'item_update.g.dart';
|
|
|
|
/// ItemUpdate
|
|
///
|
|
/// Properties:
|
|
/// * [item]
|
|
/// * [oldItem]
|
|
@JsonSerializable()
|
|
class ItemUpdate {
|
|
final Map<String, String> item;
|
|
final Map<String, String> oldItem;
|
|
|
|
const ItemUpdate({
|
|
required this.item,
|
|
required this.oldItem,
|
|
});
|
|
|
|
factory ItemUpdate.fromJson(Map<String, dynamic> json) =>
|
|
_$ItemUpdateFromJson(json);
|
|
Map<String, dynamic> toJson() => _$ItemUpdateToJson(this);
|
|
}
|