Sector.fromJson constructor
Implementation
Sector.fromJson(Map<String, dynamic> json) {
year = json['year'];
sector = json['sector'];
environmentalScore = json['environmentalScore'] != null
? EnvironmentalScore.fromJson(json['environmentalScore'])
: null;
socialScore = json['socialScore'] != null
? EnvironmentalScore.fromJson(json['socialScore'])
: null;
governanceScore = json['governanceScore'] != null
? EnvironmentalScore.fromJson(json['governanceScore'])
: null;
totalEsg = json['totalEsg'] != null
? EnvironmentalScore.fromJson(json['totalEsg'])
: null;
}