DSLInfo.fromMap constructor
DSLInfo.fromMap(
- Map widgetJson
Implementation
factory DSLInfo.fromMap(Map widgetJson) {
var type = widgetJson['type'];
var childString = jsonEncode(widgetJson['child']);
Map<String, dynamic>? jsonDataRelation;
if (widgetJson.containsKey('dataRelation')) {
jsonDataRelation = widgetJson['dataRelation'];
}
return DSLInfo(type: type, dataRelation: jsonDataRelation, childDSL: childString);
}