FunctionStepCall.fromJson constructor

FunctionStepCall.fromJson(
  1. Map<String, dynamic> json
)

Creates a FunctionStepCall from JSON.

Implementation

factory FunctionStepCall.fromJson(Map<String, dynamic> json) {
  final fn = json['function'] as Map<String, dynamic>;
  return FunctionStepCall(
    id: json['id'] as String,
    name: fn['name'] as String,
    arguments: fn['arguments'] as String,
    output: fn['output'] as String?,
  );
}