toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'migrate_to_chat_id': migrateToChatId,
    'retry_after': retryAfter,
  }..removeWhere((_, v) => v == null);
}