ResponseParameters.fromJson constructor

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

Creates a ResponseParameters object from JSON object

Implementation

factory ResponseParameters.fromJson(Map<String, dynamic> json) {
  return ResponseParameters(
    migrateToChatId: json['migrate_to_chat_id'] as int?,
    retryAfter: json['retry_after'] as int?,
  );
}