PrincipalResourcePermissions.fromJson constructor
PrincipalResourcePermissions.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PrincipalResourcePermissions.fromJson(Map<String, dynamic> json) {
return PrincipalResourcePermissions(
additionalDetails: json['AdditionalDetails'] != null
? DetailsMap.fromJson(
json['AdditionalDetails'] as Map<String, dynamic>)
: null,
permissions: (json['Permissions'] as List?)
?.whereNotNull()
.map((e) => (e as String).toPermission())
.toList(),
permissionsWithGrantOption: (json['PermissionsWithGrantOption'] as List?)
?.whereNotNull()
.map((e) => (e as String).toPermission())
.toList(),
principal: json['Principal'] != null
? DataLakePrincipal.fromJson(
json['Principal'] as Map<String, dynamic>)
: null,
resource: json['Resource'] != null
? Resource.fromJson(json['Resource'] as Map<String, dynamic>)
: null,
);
}