Tool.fromJson constructor

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

Implementation

factory Tool.fromJson(Map<String, dynamic> json) => Tool(
  type: json["type"],
  toolFunction: CustomFuction.fromJson(json["function"]),
);