fromJson static method
Inherited by: MessageSendingStateFailed MessageSendingStatePending
Implementation
static MessageSendingStateFailed? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return MessageSendingStateFailed(
error: TdError.fromJson(tdMapFromJson(json['error'])),
canRetry: (json['can_retry'] as bool?) ?? false,
needAnotherSender: (json['need_another_sender'] as bool?) ?? false,
needAnotherReplyQuote:
(json['need_another_reply_quote'] as bool?) ?? false,
needDropReply: (json['need_drop_reply'] as bool?) ?? false,
requiredPaidMessageStarCount:
(json['required_paid_message_star_count'] as int?) ?? 0,
retryAfter: ((json['retry_after'] as num?) ?? 0.0).toDouble(),
);
}