StructureModel.fromJson constructor

StructureModel.fromJson(
  1. 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)),
    );