TGoogleQueryPrediction.fromJson constructor

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

Implementation

factory TGoogleQueryPrediction.fromJson(Map<String, dynamic> json) {
  return TGoogleQueryPrediction(
    text: json['text'] != null
        ? TGooglePredictionText.fromJson(json['text'] as Map<String, dynamic>)
        : null,
    query: json['query']?.toString(),
  );
}