DriveItem.fromJson constructor

DriveItem.fromJson(
  1. Map json_
)

Implementation

DriveItem.fromJson(core.Map json_)
    : this(
        driveFile: json_.containsKey('driveFile')
            ? DriveFile.fromJson(
                json_['driveFile'] as core.Map<core.String, core.dynamic>)
            : null,
        driveFolder: json_.containsKey('driveFolder')
            ? DriveFolder.fromJson(
                json_['driveFolder'] as core.Map<core.String, core.dynamic>)
            : null,
        file: json_.containsKey('file')
            ? File.fromJson(
                json_['file'] as core.Map<core.String, core.dynamic>)
            : null,
        folder: json_.containsKey('folder')
            ? Folder.fromJson(
                json_['folder'] as core.Map<core.String, core.dynamic>)
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        owner: json_.containsKey('owner')
            ? Owner.fromJson(
                json_['owner'] as core.Map<core.String, core.dynamic>)
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );