$StandardPageResponseEntityFromJson function
Implementation
StandardScreenResponse $StandardPageResponseEntityFromJson(
Map<String, dynamic> json) {
final StandardScreenResponse standardPageResponseEntity =
StandardScreenResponse();
final String? type = jsonConvert.convert<String>(json['type']);
if (type != null) {
standardPageResponseEntity.type = type;
}
final String? componentStype =
jsonConvert.convert<String>(json['componentStype']);
if (componentStype != null) {
standardPageResponseEntity.componentStype = componentStype;
}
final List<StandardPageResponseWidgets>? widgets = jsonConvert
.convertListNotNull<StandardPageResponseWidgets>(json['widgets']);
if (widgets != null) {
standardPageResponseEntity.widgets = widgets;
}
final Map<String, dynamic> dataStore = Map.from(json['dataStore']);
if (dataStore != null) {
standardPageResponseEntity.dataStore = dataStore;
}
if (json['pageState'] != null) {
final Map<String, dynamic> pageState = Map.from(json['pageState']);
// jsonConvert.convert<Map<String, WidgetProps>>(json['dataStore']);
if (pageState != null) {
standardPageResponseEntity.pageState = pageState;
}
}
//.......................................................For Sticky Component...................................//
if (json['headers'] != null) {
final Map<String, dynamic> headers = Map.from(json['headers']);
if (headers != null) {
standardPageResponseEntity.headers = headers;
}
}
if (json['footers'] != null) {
final Map<String, dynamic> footers = Map.from(json['footers']);
if (footers != null) {
standardPageResponseEntity.footers = footers;
}
}
return standardPageResponseEntity;
}