feat(asset_detail): modular fundamentals sections, executive salaries and logo resolution

This commit is contained in:
2026-08-15 01:03:30 +02:00
parent 15f8f7896e
commit 1ccb6b613f
21 changed files with 2011 additions and 2081 deletions
@@ -0,0 +1,36 @@
import 'package:equatable/equatable.dart';
class TickerModel extends Equatable {
final String ticker;
final String? exchange;
final String? tradingCurrency;
final double? currentPrice;
const TickerModel({
required this.ticker,
this.exchange,
this.tradingCurrency,
this.currentPrice,
});
factory TickerModel.fromJson(Map<String, dynamic> json) {
return TickerModel(
ticker: json['ticker']?.toString() ?? '',
exchange: json['exchange']?.toString(),
tradingCurrency: json['tradingCurrency']?.toString(),
currentPrice: (json['currentPrice'] as num?)?.toDouble(),
);
}
Map<String, dynamic> toJson() {
return {
'ticker': ticker,
if (exchange != null) 'exchange': exchange,
if (tradingCurrency != null) 'tradingCurrency': tradingCurrency,
if (currentPrice != null) 'currentPrice': currentPrice,
};
}
@override
List<Object?> get props => [ticker, exchange, tradingCurrency, currentPrice];
}