toJson method

Map<String, dynamic> toJson()

Converts Config to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'preferredRoots': preferredRoots,
    'defaultTargets': defaultTargets,
    if (profile != null) 'profile': profile,
  };
}