TagDTO.fromJson constructor
Implementation
TagDTO.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
name = json['name'];
description = json['description'];
slug = json['slug'];
type = json['type'];
photo = json['photo'] != null ? PhotoDTO.fromJson(json['photo']) : null;
store = json['store'] != null ? StoreDTO.fromJson(json['store']) : null;
if (json['children'] != null) {
children = <TagDTO>[];
json['children'].forEach((v) {
children!.add(TagDTO.fromJson(v));
});
}
}