FunctionResponse.fromJson constructor
FunctionResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FunctionResponse.fromJson(Map<String, dynamic> json) {
return FunctionResponse(
id: json['id'] ?? '',
name: json['name'] ?? '',
response: decodeCustom(json['response'], Struct.fromJson),
parts:
decodeListMessage(json['parts'], FunctionResponsePart.fromJson) ?? [],
willContinue: json['willContinue'] ?? false,
scheduling: decodeEnum(
json['scheduling'],
FunctionResponse_Scheduling.fromJson,
),
);
}