Session constructor

Session({
  1. required int id,
  2. required bool isCurrent,
  3. required bool isPasswordPending,
  4. required bool isUnconfirmed,
  5. required bool canAcceptSecretChats,
  6. required bool canAcceptCalls,
  7. SessionDeviceType? deviceType,
  8. required int apiId,
  9. required String applicationName,
  10. required String applicationVersion,
  11. required bool isOfficialApplication,
  12. required String deviceModel,
  13. required String platform,
  14. required String systemVersion,
  15. required int logInDate,
  16. required int lastActiveDate,
  17. required String ipAddress,
  18. required String location,
})

Implementation

Session({
  required this.id,
  required this.isCurrent,
  required this.isPasswordPending,
  required this.isUnconfirmed,
  required this.canAcceptSecretChats,
  required this.canAcceptCalls,
  this.deviceType,
  required this.apiId,
  required this.applicationName,
  required this.applicationVersion,
  required this.isOfficialApplication,
  required this.deviceModel,
  required this.platform,
  required this.systemVersion,
  required this.logInDate,
  required this.lastActiveDate,
  required this.ipAddress,
  required this.location,
});