BatchPermissionsRequestEntry.fromJson constructor
BatchPermissionsRequestEntry.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BatchPermissionsRequestEntry.fromJson(Map<String, dynamic> json) {
return BatchPermissionsRequestEntry(
id: json['Id'] as String,
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,
);
}