GalleryData.fromJson constructor

GalleryData.fromJson(
  1. 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(Image.fromJson(v));
    });
  }
}