ModelDriveItem class
Base real payload for a document resource in the logical drive domain.
This model is intentionally concrete and consumable. It can represent a generic resource in listings, indexes or exploration responses, while more specific contracts such as ModelDriveFile and ModelDriveFolder add stricter guarantees on top.
- Inheritance
- Implementers
Constructors
-
ModelDriveItem({required String id, required String name, required ModelDriveKindEnum kind, required String mimeType, required String? parentId, required String path, required DateTime createdAt, required DateTime updatedAt, required bool trashed, String? webUrl, Map<
String, dynamic> ? meta}) -
const
-
ModelDriveItem.fromJson(Map<
String, dynamic> json) -
Rebuilds a ModelDriveItem from JSON.
factory
Properties
- createdAt → DateTime
-
final
- hashCode → int
-
Gets the hash code for this entity model.
no setteroverride
- id → String
-
final
- kind → ModelDriveKindEnum
-
final
-
meta
→ Map<
String, dynamic> ? -
final
- mimeType → String
-
final
- name → String
-
final
- parentId → String?
-
final
- path → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trashed → bool
-
final
- updatedAt → DateTime
-
final
- webUrl → String?
-
final
Methods
-
copyWith(
{String? id, String? name, ModelDriveKindEnum? kind, String? mimeType, Object? parentId = _driveUnset, String? path, Object? webUrl = _driveUnset, DateTime? createdAt, DateTime? updatedAt, bool? trashed, Object? meta = _driveUnset}) → ModelDriveItem -
Creates a copy of the entity model.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the entity model to a JSON Map.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Checks whether the given
otherobject is equal to this entity model.override