Files
fin-tracker/app/packages/api_client/lib/src/model/link_create.dart
T
Dmitry ccd06f32f7 chore(app): сгенерированный Dart-клиент
just gen-client — покрывает links, cashflow-broker, ручные цены,
imports/pending, goals/income/rebalance/tax/benchmarks.
2026-09-19 10:46:09 +03:00

75 lines
1.2 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 'link_create.g.dart';
@CopyWith()
@JsonSerializable(
checked: true,
createToJson: true,
disallowUnrecognizedKeys: false,
explicitToJson: true,
)
class LinkCreate {
/// Returns a new [LinkCreate] instance.
LinkCreate({
required this.cashTxnId,
required this.eventId,
});
@JsonKey(
name: r'cash_txn_id',
required: true,
includeIfNull: false,
)
final int cashTxnId;
@JsonKey(
name: r'event_id',
required: true,
includeIfNull: false,
)
final int eventId;
@override
bool operator ==(Object other) => identical(this, other) || other is LinkCreate &&
other.cashTxnId == cashTxnId &&
other.eventId == eventId;
@override
int get hashCode =>
cashTxnId.hashCode +
eventId.hashCode;
factory LinkCreate.fromJson(Map<String, dynamic> json) => _$LinkCreateFromJson(json);
Map<String, dynamic> toJson() => _$LinkCreateToJson(this);
@override
String toString() {
return toJson().toString();
}
}