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