functionResponse static method

Content functionResponse(
  1. String name,
  2. Map<String, Object?> response, {
  3. String? id,
})

Return a Content with FunctionResponse.

Implementation

static Content functionResponse(String name, Map<String, Object?> response,
        {String? id}) =>
    Content('function', [FunctionResponse(name, response, id: id)]);