toJson method

String toJson()

Serializes this message to a JSON map.

Implementation

String toJson() => json.encode(<String, dynamic>{
      'result': allTestsPassed.toString(),
      'failureDetails': _failureDetailsAsString(),
      if (data != null) 'data': data,
    });