- 모든 서비스 메서드 시그니처를 실제 구현에 맞게 수정 - TestDataGenerator 제거하고 직접 객체 생성으로 변경 - 모델 필드명 및 타입 불일치 수정 - 불필요한 Either 패턴 사용 제거 - null safety 관련 이슈 해결 수정된 파일: - test/integration/screens/company_integration_test.dart - test/integration/screens/equipment_integration_test.dart - test/integration/screens/user_integration_test.dart - test/integration/screens/login_integration_test.dart
16 lines
463 B
Dart
16 lines
463 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'login_request.freezed.dart';
|
|
part 'login_request.g.dart';
|
|
|
|
@freezed
|
|
class LoginRequest with _$LoginRequest {
|
|
const factory LoginRequest({
|
|
@JsonKey(includeIfNull: false) String? username,
|
|
@JsonKey(includeIfNull: false) String? email,
|
|
required String password,
|
|
}) = _LoginRequest;
|
|
|
|
factory LoginRequest.fromJson(Map<String, dynamic> json) =>
|
|
_$LoginRequestFromJson(json);
|
|
} |