About.fromJson constructor
About.fromJson(
- Map json_
Implementation
About.fromJson(core.Map json_)
: this(
additionalRoleInfo: json_.containsKey('additionalRoleInfo')
? (json_['additionalRoleInfo'] as core.List)
.map((value) => AboutAdditionalRoleInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
canCreateDrives: json_.containsKey('canCreateDrives')
? json_['canCreateDrives'] as core.bool
: null,
canCreateTeamDrives: json_.containsKey('canCreateTeamDrives')
? json_['canCreateTeamDrives'] as core.bool
: null,
domainSharingPolicy: json_.containsKey('domainSharingPolicy')
? json_['domainSharingPolicy'] as core.String
: null,
driveThemes: json_.containsKey('driveThemes')
? (json_['driveThemes'] as core.List)
.map((value) => AboutDriveThemes.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
exportFormats: json_.containsKey('exportFormats')
? (json_['exportFormats'] as core.List)
.map((value) => AboutExportFormats.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
features: json_.containsKey('features')
? (json_['features'] as core.List)
.map((value) => AboutFeatures.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
folderColorPalette: json_.containsKey('folderColorPalette')
? (json_['folderColorPalette'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
importFormats: json_.containsKey('importFormats')
? (json_['importFormats'] as core.List)
.map((value) => AboutImportFormats.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
isCurrentAppInstalled: json_.containsKey('isCurrentAppInstalled')
? json_['isCurrentAppInstalled'] as core.bool
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
languageCode: json_.containsKey('languageCode')
? json_['languageCode'] as core.String
: null,
largestChangeId: json_.containsKey('largestChangeId')
? json_['largestChangeId'] as core.String
: null,
maxUploadSizes: json_.containsKey('maxUploadSizes')
? (json_['maxUploadSizes'] as core.List)
.map((value) => AboutMaxUploadSizes.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
permissionId: json_.containsKey('permissionId')
? json_['permissionId'] as core.String
: null,
quotaBytesByService: json_.containsKey('quotaBytesByService')
? (json_['quotaBytesByService'] as core.List)
.map((value) => AboutQuotaBytesByService.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
quotaBytesTotal: json_.containsKey('quotaBytesTotal')
? json_['quotaBytesTotal'] as core.String
: null,
quotaBytesUsed: json_.containsKey('quotaBytesUsed')
? json_['quotaBytesUsed'] as core.String
: null,
quotaBytesUsedAggregate: json_.containsKey('quotaBytesUsedAggregate')
? json_['quotaBytesUsedAggregate'] as core.String
: null,
quotaBytesUsedInTrash: json_.containsKey('quotaBytesUsedInTrash')
? json_['quotaBytesUsedInTrash'] as core.String
: null,
quotaType: json_.containsKey('quotaType')
? json_['quotaType'] as core.String
: null,
remainingChangeIds: json_.containsKey('remainingChangeIds')
? json_['remainingChangeIds'] as core.String
: null,
rootFolderId: json_.containsKey('rootFolderId')
? json_['rootFolderId'] as core.String
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
teamDriveThemes: json_.containsKey('teamDriveThemes')
? (json_['teamDriveThemes'] as core.List)
.map((value) => AboutTeamDriveThemes.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
user: json_.containsKey('user')
? User.fromJson(
json_['user'] as core.Map<core.String, core.dynamic>)
: null,
);