feat: remove AuthModel from HttpRequestModel and integrate into HistoryRequestModel and RequestModel

This commit is contained in:
Udhay-Adithya
2025-06-25 10:12:53 +05:30
parent e06cb2e0bf
commit bf170e1446
16 changed files with 359 additions and 162 deletions

View File

@@ -31,8 +31,10 @@ _$RequestModelImpl _$$RequestModelImplFromJson(Map json) => _$RequestModelImpl(
sendingTime: json['sendingTime'] == null
? null
: DateTime.parse(json['sendingTime'] as String),
preRequestScript: json['preRequestScript'] as String?,
postRequestScript: json['postRequestScript'] as String?,
authModel: json['authModel'] == null
? const AuthModel(type: APIAuthType.none)
: AuthModel.fromJson(
Map<String, dynamic>.from(json['authModel'] as Map)),
);
Map<String, dynamic> _$$RequestModelImplToJson(_$RequestModelImpl instance) =>
@@ -46,8 +48,7 @@ Map<String, dynamic> _$$RequestModelImplToJson(_$RequestModelImpl instance) =>
'responseStatus': instance.responseStatus,
'message': instance.message,
'httpResponseModel': instance.httpResponseModel?.toJson(),
'preRequestScript': instance.preRequestScript,
'postRequestScript': instance.postRequestScript,
'authModel': instance.authModel?.toJson(),
};
const _$APITypeEnumMap = {