Config.fromJson constructor
Creates a Config from a JSON map.
Implementation
factory Config.fromJson(Map<String, dynamic> json) {
return Config(
preferredRoots: (json['preferredRoots'] as List<dynamic>?)
?.map((e) => e.toString())
.toList() ??
[],
defaultTargets: (json['defaultTargets'] as List<dynamic>?)
?.map((e) => e.toString())
.toList() ??
[],
profile: json['profile'] as String?,
);
}