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