
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.
17 lines
581 B
Dart
17 lines
581 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'auth_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_AuthModel _$AuthModelFromJson(Map<String, dynamic> json) => _AuthModel(
|
|
accessToken: json['access_token'] as String?,
|
|
dbName: json['db_name'] as String?,
|
|
uid: (json['uid'] as num?)?.toInt(),
|
|
refreshToken: json['refreshToken'] as String?,
|
|
name: json['name'] as String?,
|
|
username: json['username'] as String?,
|
|
);
|