createResponse method

FunctionApprovalResponseContent createResponse(
  1. bool approved, [
  2. String? reason
])

Creates a response to this approval request.

Implementation

FunctionApprovalResponseContent createResponse(
  bool approved, [
  String? reason,
]) =>
    FunctionApprovalResponseContent(
      id: id,
      approved: approved,
      functionCall: functionCall,
      reason: reason,
    );