InputTextMessageContent.fromJson constructor
Constructs an InputTextMessageContent object from a JSON object
Implementation
factory InputTextMessageContent.fromJson(Map<String, dynamic> json) {
return InputTextMessageContent(
messageText: json['message_text'] as String,
parseMode: json['parse_mode'] == null
? null
: ParseMode.fromJson(json['parse_mode'] as String),
entities: (json['entities'] as List<dynamic>?)
?.map((e) => MessageEntity.fromJson(e as Map<String, dynamic>))
.toList(),
linkPreviewOptions: json['disable_web_page_preview'] == null
? null
: LinkPreviewOptions.fromJson(
json['disable_web_page_preview'] as Map<String, dynamic>,
),
);
}