diff --git a/lib/models/oxygenpost.dart b/lib/models/oxygenpost.dart new file mode 100644 index 0000000..a35d604 --- /dev/null +++ b/lib/models/oxygenpost.dart @@ -0,0 +1,28 @@ +class OxygenPostModel { + final String title; + final String description; + final String pin; + final String postedOn; + final String postedBy; + final String postedRole; + + OxygenPostModel({ + required this.title, + required this.description, + required this.pin, + required this.postedOn, + required this.postedBy, + required this.postedRole, + }); + + Map toMap() { + return { + "title": title, + "description": description, + "pin": pin, + "postedOn": postedOn, + "postedBy": postedBy, + "postedRole": postedRole, + }; + } +}