TeamDrive.fromJson constructor
TeamDrive.fromJson(
- Map json_
Implementation
TeamDrive.fromJson(core.Map json_)
: this(
backgroundImageFile: json_.containsKey('backgroundImageFile')
? TeamDriveBackgroundImageFile.fromJson(
json_['backgroundImageFile']
as core.Map<core.String, core.dynamic>)
: null,
backgroundImageLink: json_.containsKey('backgroundImageLink')
? json_['backgroundImageLink'] as core.String
: null,
capabilities: json_.containsKey('capabilities')
? TeamDriveCapabilities.fromJson(
json_['capabilities'] as core.Map<core.String, core.dynamic>)
: null,
colorRgb: json_.containsKey('colorRgb')
? json_['colorRgb'] as core.String
: null,
createdTime: json_.containsKey('createdTime')
? core.DateTime.parse(json_['createdTime'] as core.String)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
orgUnitId: json_.containsKey('orgUnitId')
? json_['orgUnitId'] as core.String
: null,
restrictions: json_.containsKey('restrictions')
? TeamDriveRestrictions.fromJson(
json_['restrictions'] as core.Map<core.String, core.dynamic>)
: null,
themeId: json_.containsKey('themeId')
? json_['themeId'] as core.String
: null,
);