Revision.fromJson constructor
Revision.fromJson(
- Map json_
Implementation
Revision.fromJson(core.Map json_)
: this(
downloadUrl: json_.containsKey('downloadUrl')
? json_['downloadUrl'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
exportLinks: json_.containsKey('exportLinks')
? (json_['exportLinks'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
fileSize: json_.containsKey('fileSize')
? json_['fileSize'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
lastModifyingUser: json_.containsKey('lastModifyingUser')
? User.fromJson(json_['lastModifyingUser']
as core.Map<core.String, core.dynamic>)
: null,
lastModifyingUserName: json_.containsKey('lastModifyingUserName')
? json_['lastModifyingUserName'] as core.String
: null,
md5Checksum: json_.containsKey('md5Checksum')
? json_['md5Checksum'] as core.String
: null,
mimeType: json_.containsKey('mimeType')
? json_['mimeType'] as core.String
: null,
modifiedDate: json_.containsKey('modifiedDate')
? core.DateTime.parse(json_['modifiedDate'] as core.String)
: null,
originalFilename: json_.containsKey('originalFilename')
? json_['originalFilename'] as core.String
: null,
pinned:
json_.containsKey('pinned') ? json_['pinned'] as core.bool : null,
publishAuto: json_.containsKey('publishAuto')
? json_['publishAuto'] as core.bool
: null,
published: json_.containsKey('published')
? json_['published'] as core.bool
: null,
publishedLink: json_.containsKey('publishedLink')
? json_['publishedLink'] as core.String
: null,
publishedOutsideDomain: json_.containsKey('publishedOutsideDomain')
? json_['publishedOutsideDomain'] as core.bool
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
);