Skip to content

Commit

Permalink
Added OxygenPostModel
Browse files Browse the repository at this point in the history
  • Loading branch information
niloysikdar committed May 1, 2021
1 parent e3f66ff commit 1a9fbf2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions lib/models/oxygenpost.dart
Original file line number Diff line number Diff line change
@@ -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<String, dynamic> toMap() {
return {
"title": title,
"description": description,
"pin": pin,
"postedOn": postedOn,
"postedBy": postedBy,
"postedRole": postedRole,
};
}
}

0 comments on commit 1a9fbf2

Please sign in to comment.