mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
feat: update RequestModel to include default preRequestScript and postRequestScript
This commit is contained in:
@@ -27,8 +27,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? ?? "",
|
||||
preRequestScript: json['preRequestScript'] as String? ??
|
||||
"// Use Javacript to modify this request dynamically",
|
||||
postRequestScript: json['postRequestScript'] as String? ??
|
||||
"// Use Javacript to modify this request dynamically",
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$RequestModelImplToJson(_$RequestModelImpl instance) =>
|
||||
|
||||
Reference in New Issue
Block a user