GalleryData.fromJson constructor
GalleryData.fromJson(
- dynamic json
Implementation
GalleryData.fromJson(dynamic json) {
_projectGalleryId = json['project_gallery_id'];
_projectId = json['project_id'];
_title = json['title'];
_titleArray = json['title_array'] != null ? json['title_array'].cast<String>() : [];
_tagLine = json['tag_line'];
_type = json['type'];
_description = json['description'];
_createdAt = json['created_at'];
if (json['image'] != null) {
_image = [];
json['image'].forEach((v) {
_image?.add(ProjectImage.fromJson(v));
});
}
}