course-work/lib/models/item.g.dart

24 lines
756 B
Dart
Raw Normal View History

2022-12-27 05:13:07 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'item.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Item _$ItemFromJson(Map<String, dynamic> json) => Item(
title: json['title'] as String,
id: json['id'] as int,
description: json['description'] as String?,
price: json['price'] as int?,
quantity: json['quantity'] as int?,
);
Map<String, dynamic> _$ItemToJson(Item instance) => <String, dynamic>{
'title': instance.title,
'description': instance.description,
'price': instance.price,
'id': instance.id,
'quantity': instance.quantity,
};