Submodule.fromJson constructor
Submodule.fromJson(
- Map<String, dynamic> json
)
Implementation
Submodule.fromJson(Map<String, dynamic> json) {
if (json["id"] is int) {
id = json["id"];
}
if (json["label"] is String) {
label = json["label"];
}
productRefId = json["productRefId"];
if (json["uniqueIdentifier"] is String) {
uniqueIdentifier = json["uniqueIdentifier"];
}
if (json["features"] is List) {
features = json["features"] == null
? null
: (json["features"] as List)
.map((e) => Features.fromJson(e))
.toList();
}
}