RunScriptResult.fromJson constructor

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

Implementation

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