toJson method

Map<String, dynamic> toJson()

Method to convert a TestStartEvent instance into a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type,
    'test': test.toJson(),
  };
}