17 lines
489 B
Dart
17 lines
489 B
Dart
import "package:freezed_annotation/freezed_annotation.dart";
|
|
part "client_state.freezed.dart";
|
|
part "client_state.g.dart";
|
|
|
|
@freezed
|
|
abstract class ClientState with _$ClientState {
|
|
const factory ClientState({
|
|
required bool isInitialized,
|
|
required bool isLoggedIn,
|
|
required bool isVerified,
|
|
required String? userId,
|
|
required String? homeserverUrl,
|
|
}) = _ClientState;
|
|
|
|
factory ClientState.fromJson(Map<String, Object?> json) =>
|
|
_$ClientStateFromJson(json);
|
|
}
|