LeapFunctionCall class final
A function call made by the model.
Constructors
-
LeapFunctionCall({required String id, required String name, required Map<
String, dynamic> arguments}) -
Creates a new LeapFunctionCall.
const
-
LeapFunctionCall.fromMap(Map<
String, dynamic> map) -
Creates a LeapFunctionCall from a JSON map.
factory
Properties
-
arguments
→ Map<
String, dynamic> -
The arguments to pass to the function.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
The unique identifier for this function call.
final
- name → String
-
The name of the function to call.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? id, String? name, Map< String, dynamic> ? arguments}) → LeapFunctionCall - Creates a copy with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this function call to a JSON map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override