fromJson static method

InputMessageReplyToExternalMessage? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static InputMessageReplyToExternalMessage? fromJson(
  Map<String, dynamic>? json,
) {
  if (json == null) {
    return null;
  }

  return InputMessageReplyToExternalMessage(
    chatId: (json['chat_id'] as int?) ?? 0,
    messageId: (json['message_id'] as int?) ?? 0,
    quote: InputTextQuote.fromJson(tdMapFromJson(json['quote'])),
    checklistTaskId: (json['checklist_task_id'] as int?) ?? 0,
    pollOptionId: (json['poll_option_id'] as String?) ?? '',
  );
}