Initial commit: Penyerahan final Source code Tugas Akhir

This commit is contained in:
ferdiakhh
2025-07-10 19:15:14 +07:00
commit e1f2206b8a
687 changed files with 80132 additions and 0 deletions

View File

@ -0,0 +1,55 @@
class ReplyModel {
ReplyModel({
this.idRep,
this.sender,
this.name,
this.body,
this.fotoProfile,
this.updateAt,
this.createAt,
});
String? idRep;
String? sender;
String? name;
String? body;
String? fotoProfile;
String? updateAt;
String? createAt;
factory ReplyModel.fromJson(Map<String, dynamic> json) => ReplyModel(
idRep: json["id_replies"],
sender: json["sender"],
name: json["name"],
body: json["body"],
fotoProfile: json["foto_profile"],
createAt: json["created_at"],
updateAt: json["update_at"],
);
Map<String, dynamic> toJson() => {
"id_replies": idRep,
"sender": sender,
"name": name,
"body": body,
"foto_profile": fotoProfile,
"update_at": updateAt,
"created_at": createAt,
};
}
class LikeModels {
LikeModels({
this.userId,
});
bool? userId;
factory LikeModels.fromJson(Map<String, dynamic> json) => LikeModels(
userId: json["user_id"].length > 0,
);
Map<String, dynamic> toJson() => {
"id_replies": userId,
};
}