fist commit ftc staff app clone

This commit is contained in:
2024-08-01 13:46:46 +05:30
commit bf9064a9c9
515 changed files with 42796 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
import 'package:ftc_mobile_app/models/profileData/user_data.dart';
class MemoryListData {
MemoryListData({
this.addedBy,
this.userId,
this.note,
this.filePath,
this.isDeleted,
this.createdAt,
this.updatedAt,
this.id,
});
MemoryListData.fromJson(dynamic json) {
id = json['_id'];
addedBy =
json['addedBy'] != null ? UserData.fromJson(json['addedBy']) : null;
userId = json['userId'] != null ? UserData.fromJson(json['userId']) : null;
note = json['note'];
filePath = json['filePath'];
isDeleted = json['isDeleted'];
createdAt = json['createdAt'];
updatedAt = json['updatedAt'];
}
String? id;
UserData? addedBy;
UserData? userId;
String? note;
String? filePath;
bool? isDeleted;
String? createdAt;
String? updatedAt;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['_id'] = id;
if (addedBy != null) {
map['addedBy'] = addedBy?.toJson();
}
if (userId != null) {
map['userId'] = userId?.toJson();
}
map['note'] = note;
map['filePath'] = filePath;
map['isDeleted'] = isDeleted;
map['createdAt'] = createdAt;
map['updatedAt'] = updatedAt;
return map;
}
}

View File

@@ -0,0 +1,30 @@
import 'MemoryListResponseData.dart';
class MemoryListResponse {
MemoryListResponse({
this.success,
this.status,
this.message,
this.data,});
MemoryListResponse.fromJson(dynamic json) {
status = json['status'];
message = json['message'];
data = json['data'] != null ? MemoryListResponseData.fromJson(json['data']) : null;
}
bool? success;
String? status;
String? message;
MemoryListResponseData? data;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['status'] = status;
map['message'] = message;
if (data != null) {
map['data'] = data?.toJson();
}
return map;
}
}

View File

@@ -0,0 +1,38 @@
import 'MemoryListData.dart';
class MemoryListResponseData {
MemoryListResponseData({
this.list,
this.count,
this.offset,
this.limit,
});
MemoryListResponseData.fromJson(dynamic json) {
if (json['list'] != null) {
list = [];
json['list'].forEach((v) {
list?.add(MemoryListData.fromJson(v));
});
}
count = json['count'];
offset = json['offset'];
limit = json['limit'];
}
List<MemoryListData>? list;
int? count;
int? offset;
int? limit;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (list != null) {
map['list'] = list?.map((v) => v.toJson()).toList();
}
map['count'] = count;
map['offset'] = offset;
map['limit'] = limit;
return map;
}
}