INFRA: Set Up Project.
This commit is contained in:
24
lib/models/on_boarding_model.dart
Normal file
24
lib/models/on_boarding_model.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
class OnBoardingModel {
|
||||
String? description;
|
||||
String? id;
|
||||
String? title;
|
||||
String? image;
|
||||
|
||||
OnBoardingModel({this.description, this.id, this.title, this.image});
|
||||
|
||||
OnBoardingModel.fromJson(Map<String, dynamic> json) {
|
||||
description = json['description'];
|
||||
id = json['id'];
|
||||
title = json['title'];
|
||||
image = json['image'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['description'] = description;
|
||||
data['id'] = id;
|
||||
data['title'] = title;
|
||||
data['image'] = image;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user