# toJson method

Map<String, Object> toJson()
inherited

Serializes this object into a JSON-compatible Map.

Example:

    final properties = _SystemProperties.builder()
      .compilationMode(CompilationMode.debug)
      .build();

    print(properties.toJson());

## Implementation

    Map<String, Object> toJson() => {
      'compilationMode': _compilationMode.name,
      'runningFromDill': _runningFromDill,
      'runningAot': _runningAot,
      'runningJit': _runningJit,
      'entrypoint': _entrypoint,
      'launchCommand': _launchCommand,
      'ideRunning': _ideRunning,
      'dependencyCount': _dependencyCount,
      'configurationCount': _configurationCount,
      'watchModeEnabled': _watchModeEnabled,
    };