StructuredFormattingGoogle.fromJson constructor
StructuredFormattingGoogle.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StructuredFormattingGoogle.fromJson(Map<String, dynamic> json) =>
StructuredFormattingGoogle(
mainText: json["main_text"],
mainTextMatchedSubstrings: json["main_text_matched_substrings"] == null
? []
: List<MatchedSubstringGoogle>.from(json["main_text_matched_substrings"]!
.map((x) => MatchedSubstringGoogle.fromJson(x))),
secondaryText: json["secondary_text"],
);