TGooglePredictionText.fromJson constructor

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

Implementation

factory TGooglePredictionText.fromJson(Map<String, dynamic> json) {
  return TGooglePredictionText(
    text: json['text']?.toString() ?? '',
    matches: json['matches'] as List<dynamic>?,
  );
}