GetSearchSuggestionsResponse.fromJson constructor

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

Implementation

factory GetSearchSuggestionsResponse.fromJson(Map<String, dynamic> json) {
  return GetSearchSuggestionsResponse(
    propertyNameSuggestions: (json['PropertyNameSuggestions'] as List?)
        ?.whereNotNull()
        .map(
            (e) => PropertyNameSuggestion.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}