RunException.fromJsonString constructor

RunException.fromJsonString(
  1. String jsonString
)

Implementation

factory RunException.fromJsonString(String jsonString) {
  final jsonMap = jsonDecode(jsonString) as Map<String, dynamic>;
  return RunException(
    jsonMap['cmdLine'] as String,
    jsonMap['exitCode'] as int,
    jsonMap['reason'] as String,
    stackTrace: jsonMap['stackTrace'] != null
        ? Trace.parse(jsonMap['stackTrace'] as String)
        : null,
  );
}