EtfSector.fromJson constructor

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

Implementation

EtfSector.fromJson(Map<String, dynamic> json) {
  symbol = json['symbol'];
  if (json['sectorExposure'] != null) {
    sectorExposure = <SectorExposure>[];
    json['sectorExposure'].forEach((v) {
      sectorExposure!.add(SectorExposure.fromJson(v));
    });
  }
}