mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 18:57:05 +08:00
fix: make authModel optional in HistoryRequestModel
This commit is contained in:
@@ -18,7 +18,7 @@ class HistoryRequestModel with _$HistoryRequestModel {
|
||||
required HttpResponseModel httpResponseModel,
|
||||
String? preRequestScript,
|
||||
String? postRequestScript,
|
||||
required AuthModel? authModel,
|
||||
AuthModel? authModel,
|
||||
}) = _HistoryRequestModel;
|
||||
|
||||
factory HistoryRequestModel.fromJson(Map<String, Object?> json) =>
|
||||
|
||||
@@ -251,7 +251,7 @@ class _$HistoryRequestModelImpl implements _HistoryRequestModel {
|
||||
required this.httpResponseModel,
|
||||
this.preRequestScript,
|
||||
this.postRequestScript,
|
||||
required this.authModel});
|
||||
this.authModel});
|
||||
|
||||
factory _$HistoryRequestModelImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$HistoryRequestModelImplFromJson(json);
|
||||
@@ -334,7 +334,7 @@ abstract class _HistoryRequestModel implements HistoryRequestModel {
|
||||
required final HttpResponseModel httpResponseModel,
|
||||
final String? preRequestScript,
|
||||
final String? postRequestScript,
|
||||
required final AuthModel? authModel}) = _$HistoryRequestModelImpl;
|
||||
final AuthModel? authModel}) = _$HistoryRequestModelImpl;
|
||||
|
||||
factory _HistoryRequestModel.fromJson(Map<String, dynamic> json) =
|
||||
_$HistoryRequestModelImpl.fromJson;
|
||||
|
||||
Reference in New Issue
Block a user