Config.fromJson constructor

Config.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Config.fromJson(Map<String, dynamic> json) {
  defaults = ConfigEnvironment.fromJson(json['default']);
  environments = Map.from(json['environments']).map((key, value) => MapEntry(key, ConfigEnvironment.fromJson(value)));
}