fromJson static method
Implementation
static ConfigElement fromJson(Map<String, dynamic> json) {
switch (json['type']) {
case 'Section':
return Section.fromJson(json);
case 'ArrayElement':
return ArrayElement.fromJson(json);
case 'Property':
return Property.fromJson(json);
case 'Command':
return Command.fromJson(json);
default:
throw Exception('Unknown ConfigElement type');
}
}