$UikHomeCardSevenPropsFromJson function
Implementation
UikHomeCardSevenProps $UikHomeCardSevenPropsFromJson(
Map<String, dynamic> json) {
final UikHomeCardSevenProps uikHomeCardSevenProps = UikHomeCardSevenProps();
final String? id = jsonConvert.convert<String>(json['id']);
if (id != null) {
uikHomeCardSevenProps.id = id;
}
final String? heading = jsonConvert.convert<String>(json['heading']);
if (heading != null) {
uikHomeCardSevenProps.heading = UikContainerText(
WidgetType.UikContainerText,
UikContainerTextProps.fromJson(json['heading']));
}
final String? subheading = jsonConvert.convert<String>(json['subheading']);
if (subheading != null) {
uikHomeCardSevenProps.subheading = UikContainerText(
WidgetType.UikContainerText,
UikContainerTextProps.fromJson(json['subheading']));
}
final String? sideText = jsonConvert.convert<String>(json['sideText']);
if (sideText != null) {
uikHomeCardSevenProps.sideText = UikContainerText(
WidgetType.UikContainerText,
UikContainerTextProps.fromJson(json['sideText']));
}
final double? marginLeft = jsonConvert.convert<double>(json['marginLeft']);
if (marginLeft != null) {
uikHomeCardSevenProps.marginLeft = marginLeft;
}
final double? marginRight = jsonConvert.convert<double>(json['marginRight']);
if (marginRight != null) {
uikHomeCardSevenProps.marginRight = marginRight;
}
final double? marginTop = jsonConvert.convert<double>(json['marginTop']);
if (marginTop != null) {
uikHomeCardSevenProps.marginTop = marginTop;
}
final double? marginBottom =
jsonConvert.convert<double>(json['marginBottom']);
if (marginBottom != null) {
uikHomeCardSevenProps.marginBottom = marginBottom;
}
final UikAction? action = jsonConvert.convert<UikAction>(json['action']);
if (action != null) {
uikHomeCardSevenProps.action = action;
}
return uikHomeCardSevenProps;
}