Esg.fromJson constructor
Implementation
Esg.fromJson(Map<String, dynamic> json) {
if (json['data'] != null) {
data = <EsgData>[];
json['data'].forEach((v) {
data!.add(EsgData.fromJson(v));
});
}
series = json['series'] != null ? Series.fromJson(json['series']) : null;
sector = json['sector'] != null ? Sector.fromJson(json['sector']) : null;
industryRating = json['industrie-rating'] != null
? IndustrieRating.fromJson(json['industrie-rating'])
: null;
environmentScore = json['environmentScore']?.toDouble();
governanceScore = json['governanceScore']?.toDouble();
socialScore = json['socialScore']?.toDouble();
symbol = json['symbol'];
totalEsg = json['totalEsg']?.toDouble();
}