Permission.fromJson constructor
Permission.fromJson(
- Map json_
Implementation
Permission.fromJson(core.Map json_)
: this(
allowFileDiscovery: json_.containsKey('allowFileDiscovery')
? json_['allowFileDiscovery'] as core.bool
: null,
deleted: json_.containsKey('deleted')
? json_['deleted'] as core.bool
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
domain: json_.containsKey('domain')
? json_['domain'] as core.String
: null,
emailAddress: json_.containsKey('emailAddress')
? json_['emailAddress'] as core.String
: null,
expirationTime: json_.containsKey('expirationTime')
? core.DateTime.parse(json_['expirationTime'] as core.String)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
pendingOwner: json_.containsKey('pendingOwner')
? json_['pendingOwner'] as core.bool
: null,
permissionDetails: json_.containsKey('permissionDetails')
? (json_['permissionDetails'] as core.List)
.map((value) => PermissionPermissionDetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
photoLink: json_.containsKey('photoLink')
? json_['photoLink'] as core.String
: null,
role: json_.containsKey('role') ? json_['role'] as core.String : null,
teamDrivePermissionDetails: json_
.containsKey('teamDrivePermissionDetails')
? (json_['teamDrivePermissionDetails'] as core.List)
.map((value) => PermissionTeamDrivePermissionDetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
view: json_.containsKey('view') ? json_['view'] as core.String : null,
);