ScriptDefinition class final
The ScriptDefinition class represents a script definition used for script actions.
It contains the following fields:
- sourceCode: The source code of the script.
- functionName: The name of the function to be executed within the script.
- meta: An optional map containing metadata related to the script.
It also provides a factory method fromJson to create an instance of ScriptDefinition from a JSON object. This is useful for deserializing script data from a server response.
Constructors
-
ScriptDefinition.new({required String sourceCode, required String functionName, required Map<
String, dynamic> ? meta}) -
ScriptDefinition.fromJson(Map<
String, dynamic> json) -
factory
Properties
- functionName → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
meta
→ Map<
String, dynamic> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceCode → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited