Files
fin-tracker/app/packages/api_client/lib/src/model/health.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

91 lines
1.4 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 'health.g.dart';
@CopyWith()
@JsonSerializable(
checked: true,
createToJson: true,
disallowUnrecognizedKeys: false,
explicitToJson: true,
)
class Health {
/// Returns a new [Health] instance.
Health({
required this.database,
required this.status,
required this.version,
});
@JsonKey(
name: r'database',
required: true,
includeIfNull: false,
)
final String database;
@JsonKey(
name: r'status',
required: true,
includeIfNull: false,
)
final String status;
@JsonKey(
name: r'version',
required: true,
includeIfNull: false,
)
final String version;
@override
bool operator ==(Object other) => identical(this, other) || other is Health &&
other.database == database &&
other.status == status &&
other.version == version;
@override
int get hashCode =>
database.hashCode +
status.hashCode +
version.hashCode;
factory Health.fromJson(Map<String, dynamic> json) => _$HealthFromJson(json);
Map<String, dynamic> toJson() => _$HealthToJson(this);
@override
String toString() {
return toJson().toString();
}
}