toJson method

Map<String, dynamic> toJson()

Converts this TestingConfig instance to a JSON map.

This method serializes the TestingConfig object into a JSON representation that can be easily stored or transmitted.

Returns a Map containing the 'testingFramework', 'enableUnitTests', 'enableIntegrationTests', 'enableE2ETests', 'runUnitTests', and 'coverageThreshold' keys and their corresponding values.

Implementation

Map<String, dynamic> toJson() => {
      'testingFramework': testingFramework,
      'enableUnitTests': enableUnitTests,
      'enableIntegrationTests': enableIntegrationTests,
      'enableE2ETests': enableE2ETests,
      'runUnitTests': runUnitTests,
      'coverageThreshold': coverageThreshold,
    };