just gen-client — покрывает links, cashflow-broker, ручные цены, imports/pending, goals/income/rebalance/tax/benchmarks.
75 lines
1.2 KiB
Dart
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();
|
|
}
|
|
|
|
}
|
|
|