$UikProductPageContainerPropsFromJson function
Implementation
UikProductPageContainerProps $UikProductPageContainerPropsFromJson(
Map<String, dynamic> json) {
final UikProductPageContainerProps uikProductPageContainerProps =
UikProductPageContainerProps();
final String? id = jsonConvert.convert<String>(json['id']);
if (id != null) {
uikProductPageContainerProps.id = id;
}
final String? price = jsonConvert.convert<String>(json['price']);
if (price != null) {
uikProductPageContainerProps.price =
UikText(WidgetType.UikText, UikTextProps.fromJson(json['price']));
}
final String? desc = jsonConvert.convert<String>(json['desc']);
if (desc != null) {
uikProductPageContainerProps.desc =
UikText(WidgetType.UikText, UikTextProps.fromJson(json['desc']));
}
final String? tagRow = jsonConvert.convert<String>(json['tagRow']);
if (tagRow != null) {
uikProductPageContainerProps.tagRow = UikProductScreenTagsRow(
WidgetType.UikText,
UikProductScreenTagsRowProps.fromJson(json['tagRow']));
}
final String? addCartButton =
jsonConvert.convert<String>(json['addCartButton']);
if (addCartButton != null) {
uikProductPageContainerProps.addCartButton = UikButton(
WidgetType.UikText, UikButtonProps.fromJson(json['addCartButton']));
}
final UikAction? action = jsonConvert.convert<UikAction>(json['action']);
if (action != null) {
uikProductPageContainerProps.action = action;
}
return uikProductPageContainerProps;
}