Line data Source code
1 : import 'package:fast_immutable_collections/fast_immutable_collections.dart';
2 : import 'package:freezed_annotation/freezed_annotation.dart';
3 :
4 : import '../../../../types.dart';
5 : import '../enums/linking_account_enum.dart';
6 :
7 : part 'link_accounts_view_model.freezed.dart';
8 : part 'link_accounts_view_model.g.dart';
9 :
10 : @freezed
11 : class LinkAccountsViewModel with _$LinkAccountsViewModel, ReduxState {
12 : static const String className = 'LinkAccountsViewModel';
13 :
14 20 : const LinkAccountsViewModel._();
15 : const factory LinkAccountsViewModel(
16 : IMap<ProvidersEnum, LinkingStateEnum> stateOf) = _LinkAccountsViewModel;
17 :
18 1 : factory LinkAccountsViewModel.fromJson(JsonMap json) =>
19 1 : _$LinkAccountsViewModelFromJson(json);
20 :
21 20 : factory LinkAccountsViewModel.init() =>
22 40 : LinkAccountsViewModel(IMap<ProvidersEnum, LinkingStateEnum>());
23 :
24 0 : @override
25 : String get typeName => className;
26 : }
|