ToolUseExample.fromJson constructor
ToolUseExample.fromJson(
- Object? j
Implementation
factory ToolUseExample.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ToolUseExample(
extensionOperation: switch (json['extensionOperation']) {
null => null,
Object $1 => ToolUseExample_ExtensionOperation.fromJson($1),
},
functionName: switch (json['functionName']) {
null => null,
Object $1 => decodeString($1),
},
displayName: switch (json['displayName']) {
null => '',
Object $1 => decodeString($1),
},
query: switch (json['query']) {
null => '',
Object $1 => decodeString($1),
},
requestParams: switch (json['requestParams']) {
null => null,
Object $1 => protobuf.Struct.fromJson($1),
},
responseParams: switch (json['responseParams']) {
null => null,
Object $1 => protobuf.Struct.fromJson($1),
},
responseSummary: switch (json['responseSummary']) {
null => '',
Object $1 => decodeString($1),
},
);
}