StructureModel.fromJson constructor
StructureModel.fromJson(
- YamlMap json
Implementation
factory StructureModel.fromJson(YamlMap json) => StructureModel(
folder: json['folder'],
subFolders: List<YamlMap>.from(json['sub_folders'] ?? <dynamic>[])
.map<SubFolderModel>((element) => SubFolderModel.fromJson(element)),
);