Files
fin-tracker/app/packages/api_client/lib/src/model/user_out.dart
T
Dmitry 90ba198c2a chore(app): сгенерированный Dart-клиент из OpenAPI
openapi-generator-cli -g dart-dio. Генерируется, но коммитится: CI ловит дрейф
openapi/openapi.json, а приложение собирается без запуска генератора.
Пересобирается через just gen-client после любого изменения роутов.
2026-09-18 13:44:09 +03:00

75 lines
1.1 KiB
Dart

//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// ignore_for_file: unused_element
import 'package:copy_with_extension/copy_with_extension.dart';
import 'package:json_annotation/json_annotation.dart';
part 'user_out.g.dart';
@CopyWith()
@JsonSerializable(
checked: true,
createToJson: true,
disallowUnrecognizedKeys: false,
explicitToJson: true,
)
class UserOut {
/// Returns a new [UserOut] instance.
UserOut({
required this.email,
required this.id,
});
@JsonKey(
name: r'email',
required: true,
includeIfNull: false,
)
final String email;
@JsonKey(
name: r'id',
required: true,
includeIfNull: false,
)
final int id;
@override
bool operator ==(Object other) => identical(this, other) || other is UserOut &&
other.email == email &&
other.id == id;
@override
int get hashCode =>
email.hashCode +
id.hashCode;
factory UserOut.fromJson(Map<String, dynamic> json) => _$UserOutFromJson(json);
Map<String, dynamic> toJson() => _$UserOutToJson(this);
@override
String toString() {
return toJson().toString();
}
}