fromJsonString static method
Parses the string form the VM-service evaluate returns.
Implementation
static TapResult fromJsonString(String source) {
try {
final decoded = jsonDecode(source);
return decoded is Map<String, dynamic>
? TapResult.fromJson(decoded)
: TapError('seam returned a non-object payload: $source');
} on FormatException catch (e) {
return TapError('seam returned non-JSON output: ${e.message}');
}
}