00d8499879
(cherry picked from commit 1901d66c9100ca455c91ee8c95341de2a283eb67)
14 lines
410 B
Dart
14 lines
410 B
Dart
import 'package:model/account/personal_account.dart';
|
|
import 'package:tmail_ui_user/features/login/data/model/account_cache.dart';
|
|
|
|
extension PersonalAccountExtension on PersonalAccount {
|
|
AccountCache toCache() {
|
|
return AccountCache(
|
|
id,
|
|
authenticationType.name,
|
|
isSelected: isSelected,
|
|
accountId: accountId?.id.value,
|
|
apiUrl: apiUrl,
|
|
userName: userName?.value);
|
|
}
|
|
} |