request detail
This commit is contained in:
@@ -8,15 +8,21 @@ import 'package:equatable/equatable.dart';
|
||||
|
||||
/// Project File Entity
|
||||
///
|
||||
/// Represents an uploaded file attached to a sample project.
|
||||
class SampleProjectFile extends Equatable {
|
||||
/// Shared entity for file attachments used by:
|
||||
/// - SampleProject (model houses)
|
||||
/// - DesignRequest (design requests)
|
||||
///
|
||||
/// API field mapping:
|
||||
/// - name -> id
|
||||
/// - file_url -> fileUrl
|
||||
class ProjectFile extends Equatable {
|
||||
/// Unique file identifier (API: name)
|
||||
final String id;
|
||||
|
||||
/// Full URL to the file (API: file_url)
|
||||
final String fileUrl;
|
||||
|
||||
const SampleProjectFile({
|
||||
const ProjectFile({
|
||||
required this.id,
|
||||
required this.fileUrl,
|
||||
});
|
||||
@@ -52,7 +58,7 @@ class SampleProject extends Equatable {
|
||||
final String? thumbnailUrl;
|
||||
|
||||
/// List of attached files/images (API: files_list) - available in detail
|
||||
final List<SampleProjectFile> filesList;
|
||||
final List<ProjectFile> filesList;
|
||||
|
||||
const SampleProject({
|
||||
required this.id,
|
||||
|
||||
Reference in New Issue
Block a user