EtfHoldings.fromJson constructor

EtfHoldings.fromJson(
  1. Map<String, dynamic> json
)

Implementation

EtfHoldings.fromJson(Map<String, dynamic> json) {
  if (json['holdings'] != null) {
    holdings = <Holdings>[];
    json['holdings'].forEach((v) {
      holdings!.add(Holdings.fromJson(v));
    });
  }
  atDate = json['atDate'];
  symbol = json['symbol'];
}