FunctionCallResponse.fromJson constructor
Implementation
factory FunctionCallResponse.fromJson(Map<String, dynamic> json) =>
FunctionCallResponse(
result: json['result'],
logs:
(json['logs'] as List<dynamic>?)
?.map((x) => TriggerLog.fromJson(x))
.toList() ??
[],
error: json['error'] ?? '',
durationInSeconds: (json['durationInSeconds'] as num?)?.toDouble() ?? 0,
);