Files
mobile-app/lib/features/auth/data/models/auth_response.dart

18 lines
515 B
Dart

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);
}