Drive class
Represents a drive in Microsoft Graph API.
A drive is the top-level container for content stored in OneDrive or SharePoint. This includes personal OneDrive, OneDrive for Business, and SharePoint document libraries.
- Annotations
-
- @JsonSerializable()
Constructors
- Drive.new({String? id, String? name, String? driveType, IdentitySet? owner, DriveQuota? quota, String? webUrl})
- Creates a new Drive instance.
-
Drive.fromJson(Map<
String, dynamic> json) -
Creates a Drive instance from JSON data.
factory
Properties
- driveType → String?
-
The type of drive.
Possible values are personal, business, documentLibrary.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The unique identifier of the drive.
final
- name → String?
-
Name of the drive (e.g., "OneDrive" or a SharePoint document library name).
final
- owner → IdentitySet?
-
The user account that owns the drive.
final
- quota → DriveQuota?
-
Quota information for the drive.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- webUrl → String?
-
The URL that can be used to access the drive in a browser.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this Drive instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited