chore(app): сгенерированный Dart-клиент
just gen-client — покрывает links, cashflow-broker, ручные цены, imports/pending, goals/income/rebalance/tax/benchmarks.
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
//
|
||||
// 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 'account_suggestion.g.dart';
|
||||
|
||||
|
||||
@CopyWith()
|
||||
@JsonSerializable(
|
||||
checked: true,
|
||||
createToJson: true,
|
||||
disallowUnrecognizedKeys: false,
|
||||
explicitToJson: true,
|
||||
)
|
||||
class AccountSuggestion {
|
||||
/// Returns a new [AccountSuggestion] instance.
|
||||
AccountSuggestion({
|
||||
|
||||
required this.broker,
|
||||
|
||||
required this.id,
|
||||
|
||||
required this.name,
|
||||
|
||||
required this.sourceId,
|
||||
});
|
||||
|
||||
@JsonKey(
|
||||
|
||||
name: r'broker',
|
||||
required: true,
|
||||
includeIfNull: true,
|
||||
)
|
||||
|
||||
|
||||
final String? broker;
|
||||
|
||||
|
||||
|
||||
@JsonKey(
|
||||
|
||||
name: r'id',
|
||||
required: true,
|
||||
includeIfNull: false,
|
||||
)
|
||||
|
||||
|
||||
final int id;
|
||||
|
||||
|
||||
|
||||
@JsonKey(
|
||||
|
||||
name: r'name',
|
||||
required: true,
|
||||
includeIfNull: false,
|
||||
)
|
||||
|
||||
|
||||
final String name;
|
||||
|
||||
|
||||
|
||||
@JsonKey(
|
||||
|
||||
name: r'source_id',
|
||||
required: true,
|
||||
includeIfNull: false,
|
||||
)
|
||||
|
||||
|
||||
final String sourceId;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is AccountSuggestion &&
|
||||
other.broker == broker &&
|
||||
other.id == id &&
|
||||
other.name == name &&
|
||||
other.sourceId == sourceId;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
(broker == null ? 0 : broker.hashCode) +
|
||||
id.hashCode +
|
||||
name.hashCode +
|
||||
sourceId.hashCode;
|
||||
|
||||
factory AccountSuggestion.fromJson(Map<String, dynamic> json) => _$AccountSuggestionFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$AccountSuggestionToJson(this);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return toJson().toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user