Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Objective {
- String? id;
- String? label;
- String? description;
- String? image;
- String? createdAt;
- String? updatedAt;
- Objective({
- this.id,
- this.label,
- this.description,
- this.image,
- this.createdAt,
- this.updatedAt,
- });
- Objective.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- label = json['label'];
- description = json['description'];
- image = json['image'];
- createdAt = json['created_at'];
- updatedAt = json['updated_at'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = Map<String, dynamic>();
- data['id'] = this.id;
- data['label'] = this.label;
- data['description'] = this.description;
- data['image'] = this.image;
- data['created_at'] = this.createdAt;
- data['updated_at'] = this.updatedAt;
- return data;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement