Revision.fromJson constructor

Revision.fromJson(
  1. Map json_
)

Implementation

Revision.fromJson(core.Map json_)
    : this(
        exportLinks: json_.containsKey('exportLinks')
            ? (json_['exportLinks'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        keepForever: json_.containsKey('keepForever')
            ? json_['keepForever'] as core.bool
            : 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,
        md5Checksum: json_.containsKey('md5Checksum')
            ? json_['md5Checksum'] as core.String
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        modifiedTime: json_.containsKey('modifiedTime')
            ? core.DateTime.parse(json_['modifiedTime'] as core.String)
            : null,
        originalFilename: json_.containsKey('originalFilename')
            ? json_['originalFilename'] as core.String
            : 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,
        size: json_.containsKey('size') ? json_['size'] as core.String : null,
      );