refactor: move authModel to HttpRequestModel

This commit is contained in:
Udhay-Adithya
2025-07-03 12:12:18 +05:30
parent 4284f47fe6
commit 6c5862cd85
11 changed files with 71 additions and 60 deletions

View File

@@ -12,10 +12,6 @@ _$RequestModelImpl _$$RequestModelImplFromJson(Map json) => _$RequestModelImpl(
APIType.rest,
name: json['name'] as String? ?? "",
description: json['description'] as String? ?? "",
authModel: json['authModel'] == null
? const AuthModel(type: APIAuthType.none)
: AuthModel.fromJson(
Map<String, dynamic>.from(json['authModel'] as Map)),
requestTabIndex: json['requestTabIndex'] ?? 0,
httpRequestModel: json['httpRequestModel'] == null
? null
@@ -41,7 +37,6 @@ Map<String, dynamic> _$$RequestModelImplToJson(_$RequestModelImpl instance) =>
'apiType': _$APITypeEnumMap[instance.apiType]!,
'name': instance.name,
'description': instance.description,
'authModel': instance.authModel?.toJson(),
'httpRequestModel': instance.httpRequestModel?.toJson(),
'responseStatus': instance.responseStatus,
'message': instance.message,