INFRA: Set Up Project.

This commit is contained in:
2025-11-28 11:10:49 +05:00
commit c798279f7d
609 changed files with 77436 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import 'package:cloud_firestore/cloud_firestore.dart';
class StoryModel {
String? videoThumbnail;
List<dynamic> videoUrl = [];
String? vendorID;
Timestamp? createdAt;
StoryModel({this.videoThumbnail, this.videoUrl = const [], this.vendorID, this.createdAt});
StoryModel.fromJson(Map<String, dynamic> json) {
videoThumbnail = json['videoThumbnail'] ?? '';
videoUrl = json['videoUrl'] ?? [];
vendorID = json['vendorID'] ?? '';
createdAt = json['createdAt'] ?? Timestamp.now();
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['videoThumbnail'] = videoThumbnail;
data['videoUrl'] = videoUrl;
data['vendorID'] = vendorID;
data['createdAt'] = createdAt;
return data;
}
}