FunctionCallResponse.fromJson constructor

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

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,
    );