Initial commit

This commit is contained in:
kihong.kim
2026-01-24 19:41:19 +09:00
commit 807df3d678
90 changed files with 6411 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
class Photo {
final String id;
final String url;
final String caption;
final bool active;
const Photo({
required this.id,
required this.url,
required this.caption,
required this.active,
});
factory Photo.fromJson(Map<String, dynamic> json) {
return Photo(
id: json["_id"] as String? ?? "",
url: json["url"] as String? ?? "",
caption: json["caption"] as String? ?? "",
active: json["active"] as bool? ?? true,
);
}
Map<String, dynamic> toJson() {
return {"url": url, "caption": caption, "active": active};
}
}