mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 10:17:47 +08:00
feat: add quick auto add test to postRequestScript feature
This commit is contained in:
@@ -103,7 +103,7 @@ class ChatAction {
|
||||
const ChatAction({
|
||||
required this.action,
|
||||
required this.target,
|
||||
required this.field,
|
||||
this.field = '', // Default to empty string
|
||||
this.path,
|
||||
this.value,
|
||||
});
|
||||
@@ -112,7 +112,8 @@ class ChatAction {
|
||||
return ChatAction(
|
||||
action: json['action'] as String,
|
||||
target: json['target'] as String,
|
||||
field: json['field'] as String,
|
||||
field: json['field'] as String? ??
|
||||
'', // Default to empty string if not provided
|
||||
path: json['path'] as String?,
|
||||
value: json['value'],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user