App.fromJson constructor
App.fromJson(
- Map json_
Implementation
App.fromJson(core.Map json_)
: this(
authorized: json_.containsKey('authorized')
? json_['authorized'] as core.bool
: null,
createInFolderTemplate: json_.containsKey('createInFolderTemplate')
? json_['createInFolderTemplate'] as core.String
: null,
createUrl: json_.containsKey('createUrl')
? json_['createUrl'] as core.String
: null,
hasDriveWideScope: json_.containsKey('hasDriveWideScope')
? json_['hasDriveWideScope'] as core.bool
: null,
icons: json_.containsKey('icons')
? (json_['icons'] as core.List)
.map((value) => AppIcons.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
installed: json_.containsKey('installed')
? json_['installed'] as core.bool
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
longDescription: json_.containsKey('longDescription')
? json_['longDescription'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
objectType: json_.containsKey('objectType')
? json_['objectType'] as core.String
: null,
openUrlTemplate: json_.containsKey('openUrlTemplate')
? json_['openUrlTemplate'] as core.String
: null,
primaryFileExtensions: json_.containsKey('primaryFileExtensions')
? (json_['primaryFileExtensions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
primaryMimeTypes: json_.containsKey('primaryMimeTypes')
? (json_['primaryMimeTypes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
productId: json_.containsKey('productId')
? json_['productId'] as core.String
: null,
productUrl: json_.containsKey('productUrl')
? json_['productUrl'] as core.String
: null,
secondaryFileExtensions: json_.containsKey('secondaryFileExtensions')
? (json_['secondaryFileExtensions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
secondaryMimeTypes: json_.containsKey('secondaryMimeTypes')
? (json_['secondaryMimeTypes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
shortDescription: json_.containsKey('shortDescription')
? json_['shortDescription'] as core.String
: null,
supportsCreate: json_.containsKey('supportsCreate')
? json_['supportsCreate'] as core.bool
: null,
supportsImport: json_.containsKey('supportsImport')
? json_['supportsImport'] as core.bool
: null,
supportsMultiOpen: json_.containsKey('supportsMultiOpen')
? json_['supportsMultiOpen'] as core.bool
: null,
supportsOfflineCreate: json_.containsKey('supportsOfflineCreate')
? json_['supportsOfflineCreate'] as core.bool
: null,
useByDefault: json_.containsKey('useByDefault')
? json_['useByDefault'] as core.bool
: null,
);