feat: Implement initial authentication, multi-environment support, and core app infrastructure.
This commit is contained in:
17
lib/features/auth/data/models/auth_response.dart
Normal file
17
lib/features/auth/data/models/auth_response.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:real_estate_mobile/features/auth/data/models/user_model.dart';
|
||||
|
||||
part 'auth_response.freezed.dart';
|
||||
part 'auth_response.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class AuthResponse with _$AuthResponse {
|
||||
const factory AuthResponse({
|
||||
required UserModel user,
|
||||
required String accessToken,
|
||||
required String refreshToken,
|
||||
}) = _AuthResponse;
|
||||
|
||||
factory AuthResponse.fromJson(Map<String, dynamic> json) =>
|
||||
_$AuthResponseFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user