ModelDriveFile class
Concrete file payload for the logical drive domain.
- Inheritance
-
- Object
- Model
- ModelDriveItem
- ModelDriveFile
Constructors
-
ModelDriveFile({required String id, required String name, required String mimeType, required String? parentId, required String path, required DateTime createdAt, required DateTime updatedAt, required bool trashed, required int sizeBytes, String? webUrl, Map<
String, dynamic> ? meta, String? extension}) -
const
-
ModelDriveFile.fromJson(Map<
String, dynamic> json) -
Rebuilds a ModelDriveFile from JSON.
factory
Properties
- createdAt → DateTime
-
finalinherited
- extension → String?
-
final
- hashCode → int
-
Gets the hash code for this entity model.
no setteroverride
- id → String
-
finalinherited
- kind → ModelDriveKindEnum
-
finalinherited
-
meta
→ Map<
String, dynamic> ? -
finalinherited
- mimeType → String
-
finalinherited
- name → String
-
finalinherited
- parentId → String?
-
finalinherited
- path → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeBytes → int
-
final
- trashed → bool
-
finalinherited
- updatedAt → DateTime
-
finalinherited
- webUrl → String?
-
finalinherited
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, int? sizeBytes, Object? extension = _driveUnset}) → ModelDriveFile -
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