Module.fromJson constructor

Module.fromJson(
  1. YamlMap json
)

Implementation

factory Module.fromJson(YamlMap json) => Module(
      name: json['name'],
      structure: List<YamlMap>.from(json['structure'])
          .map<StructureModel>((element) => StructureModel.fromJson(element)),
      feature: List<YamlMap>.from(json['feature'])
          .map<FeatureModel>((element) => FeatureModel.fromJson(element)),
    );