ResponseParameters class abstract

Describes why a request was unsuccessful.

Annotations
  • @freezed

Constructors

ResponseParameters({@JsonKey.new(name: 'migrate_to_chat_id') int? migrateToChatId, @JsonKey.new(name: 'retry_after') int? retryAfter})
Constructs a ResponseParameters object
const
factory
ResponseParameters.fromJson(Map<String, dynamic> json)
Creates a ResponseParameters object from JSON object
factory

Properties

copyWith → $ResponseParametersCopyWith<ResponseParameters>
Create a copy of ResponseParameters with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
migrateToChatId → int?
Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
no setterinherited
retryAfter → int?
Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this ResponseParameters to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited