ModelData class

Model data class to store 3D model information

Constructors

ModelData.new({required ModelType type, required String modelPath, required String originalImagePath, DateTime? createdAt, Map<String, dynamic>? metadata})
Constructor
ModelData.fromJson(Map<String, dynamic> json)
Create model data from JSON
factory

Properties

createdAt DateTime
Creation timestamp
final
hashCode int
The hash code for this object.
no setterinherited
metadata Map<String, dynamic>?
Additional metadata for the model
final
modelPath String
Path to the 3D model file
final
originalImagePath String
Original image path that was used to create the model
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ModelType
The type of model (furniture, glasses, etc.)
final

Methods

copyWith({ModelType? type, String? modelPath, String? originalImagePath, DateTime? createdAt, Map<String, dynamic>? metadata}) ModelData
Create a copy of this model data with the given fields replaced
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert model data to JSON
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited