toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "use_test_dc": useTestDc,
    "database_directory": databaseDirectory,
    "files_directory": filesDirectory,
    "database_encryption_key": databaseEncryptionKey,
    "use_file_database": useFileDatabase,
    "use_chat_info_database": useChatInfoDatabase,
    "use_message_database": useMessageDatabase,
    "use_secret_chats": useSecretChats,
    "api_id": apiId,
    "api_hash": apiHash,
    "system_language_code": systemLanguageCode,
    "device_model": deviceModel,
    "system_version": systemVersion,
    "application_version": applicationVersion,
    "enable_storage_optimizer": enableStorageOptimizer,
    "ignore_file_names": ignoreFileNames,
    "@extra": extra,
  };
}