CallFunctionOnResult.fromJson constructor

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

Implementation

factory CallFunctionOnResult.fromJson(Map<String, dynamic> json) {
  return CallFunctionOnResult(
    result: RemoteObject.fromJson(json['result'] as Map<String, dynamic>),
    exceptionDetails: json.containsKey('exceptionDetails')
        ? ExceptionDetails.fromJson(
            json['exceptionDetails'] as Map<String, dynamic>)
        : null,
  );
}