MessageSendingStateFailed.fromJson constructor

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

Parses a MessageSendingStateFailed from TDLib JSON.

Implementation

factory MessageSendingStateFailed.fromJson(Map<String, dynamic> json) =>
    MessageSendingStateFailed(
      error: _readObject(json['error'], TdError.fromJson),
      canRetry: _readBool(json['can_retry']),
      needAnotherSender: _readBool(json['need_another_sender']),
      needAnotherReplyQuote: _readBool(json['need_another_reply_quote']),
      needDropReply: _readBool(json['need_drop_reply']),
      retryAfter: _readDouble(json['retry_after']),
    );