About.fromJson constructor
About.fromJson(
- Map json_
Implementation
About.fromJson(core.Map json_)
: this(
appInstalled: json_.containsKey('appInstalled')
? json_['appInstalled'] as core.bool
: null,
canCreateDrives: json_.containsKey('canCreateDrives')
? json_['canCreateDrives'] as core.bool
: null,
canCreateTeamDrives: json_.containsKey('canCreateTeamDrives')
? json_['canCreateTeamDrives'] as core.bool
: null,
driveThemes: json_.containsKey('driveThemes')
? (json_['driveThemes'] as core.List)
.map((value) => AboutDriveThemes.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
exportFormats: json_.containsKey('exportFormats')
? (json_['exportFormats'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
(value as core.List)
.map((value) => value as core.String)
.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.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
(value as core.List)
.map((value) => value as core.String)
.toList(),
),
)
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
maxImportSizes: json_.containsKey('maxImportSizes')
? (json_['maxImportSizes'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
maxUploadSize: json_.containsKey('maxUploadSize')
? json_['maxUploadSize'] as core.String
: null,
storageQuota: json_.containsKey('storageQuota')
? AboutStorageQuota.fromJson(
json_['storageQuota'] as core.Map<core.String, core.dynamic>)
: 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,
);