Organization.fromJson constructor
Organization.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Organization.fromJson(Map<String, dynamic> json) {
return Organization(
arn: json['Arn'] as String?,
availablePolicyTypes: (json['AvailablePolicyTypes'] as List?)
?.whereNotNull()
.map((e) => PolicyTypeSummary.fromJson(e as Map<String, dynamic>))
.toList(),
featureSet: (json['FeatureSet'] as String?)?.toOrganizationFeatureSet(),
id: json['Id'] as String?,
masterAccountArn: json['MasterAccountArn'] as String?,
masterAccountEmail: json['MasterAccountEmail'] as String?,
masterAccountId: json['MasterAccountId'] as String?,
);
}