class Suggestion {
constructor(responseData) {
this.streetLine = responseData.street_line;
this.secondary = responseData.secondary;
this.city = responseData.city;
this.state = responseData.state;
this.zipcode = responseData.zipcode;
this.entries = responseData.entries;
}
}
Suggestion should also include "source" param in the constructor.
the source is returned from the lookup api but then disappears in the function buildSuggestionsFromResponse, since its not building it in the suggestion constructor
class Suggestion { constructor(responseData) { this.streetLine = responseData.street_line; this.secondary = responseData.secondary; this.city = responseData.city; this.state = responseData.state; this.zipcode = responseData.zipcode; this.entries = responseData.entries; } } Suggestion should also include "source" param in the constructor. the source is returned from the lookup api but then disappears in the function buildSuggestionsFromResponse, since its not building it in the suggestion constructor