
Renames `AuthStruct` to `AuthModel` and `ProductStruct` to `ProductModel` to align with a consistent data model naming convention. Updates all relevant imports, type declarations, and method signatures across the application to reflect these changes, improving codebase clarity and maintainability. Includes minor code style improvements and refactorings in other components.
30 lines
972 B
Dart
30 lines
972 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'product_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_ProductModel _$ProductModelFromJson(Map<String, dynamic> json) =>
|
|
_ProductModel(
|
|
id: (json['id'] as num?)?.toInt() ?? 0,
|
|
code: json['code'] as String?,
|
|
name: json['name'] as String?,
|
|
description: json['description'] as String?,
|
|
price: json['price'] as String?,
|
|
quantity: json['quantity'] as String?,
|
|
image: json['image'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$ProductModelToJson(_ProductModel instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'code': instance.code,
|
|
'name': instance.name,
|
|
'description': instance.description,
|
|
'price': instance.price,
|
|
'quantity': instance.quantity,
|
|
'image': instance.image,
|
|
};
|