Advertisement
Alatri_Aymen

Untitled

Mar 14th, 2022
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. class Objective {
  2. String? id;
  3. String? label;
  4. String? description;
  5. String? image;
  6. String? createdAt;
  7. String? updatedAt;
  8.  
  9. Objective({
  10. this.id,
  11. this.label,
  12. this.description,
  13. this.image,
  14. this.createdAt,
  15. this.updatedAt,
  16. });
  17.  
  18. Objective.fromJson(Map<String, dynamic> json) {
  19. id = json['id'];
  20. label = json['label'];
  21. description = json['description'];
  22. image = json['image'];
  23. createdAt = json['created_at'];
  24. updatedAt = json['updated_at'];
  25. }
  26.  
  27. Map<String, dynamic> toJson() {
  28. final Map<String, dynamic> data = Map<String, dynamic>();
  29. data['id'] = this.id;
  30. data['label'] = this.label;
  31. data['description'] = this.description;
  32. data['image'] = this.image;
  33. data['created_at'] = this.createdAt;
  34. data['updated_at'] = this.updatedAt;
  35. return data;
  36. }
  37. }
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement