DriveItemReference.fromJson constructor

DriveItemReference.fromJson(
  1. Map json_
)

Implementation

DriveItemReference.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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );