fromJson static method

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

Creates a object from a json

Implementation

static InputTextMessageContent fromJson(Map<String, dynamic> json) {
  return InputTextMessageContent(
    json['message_text']!,
    parseMode: callIfNotNull(ParseMode.forValue, json['parse_mode']),
    entities: callIfNotNull(
      MessageEntity.listFromJsonArray,
      json['entities'],
    ),
    disableWebPagePreview: json['disable_web_page_preview'],
  );
}