Map<String, dynamic> toJson() => {'default': defaults.toJson(), 'environments': environments.map((key, value) => MapEntry(key, value.toJson()))};