$UikHomeCardEightPropsFromJson function
Implementation
UikHomeCardEightProps $UikHomeCardEightPropsFromJson(
Map<String, dynamic> json) {
final UikHomeCardEightProps uikHomeCardEightProps = UikHomeCardEightProps();
final String? id = jsonConvert.convert<String>(json['id']);
if (id != null) {
uikHomeCardEightProps.id = id;
}
final String? badgeText = jsonConvert.convert<String>(json['badgeText']);
if (badgeText != null) {
uikHomeCardEightProps.badgeText = UikContainerText(
WidgetType.UikText, UikContainerTextProps.fromJson(json['badgeText']));
}
final String? text = jsonConvert.convert<String>(json['text']);
if (text != null) {
uikHomeCardEightProps.text = UikContainerText(
WidgetType.UikText, UikContainerTextProps.fromJson(json['text']));
}
final String? image = jsonConvert.convert<String>(json['image']);
if (image != null) {
uikHomeCardEightProps.image = UikImage(
WidgetType.UikText,
UikImageProps.fromJson(
json['image'],
),
);
}
final UikAction? action = jsonConvert.convert<UikAction>(json['action']);
if (action != null) {
uikHomeCardEightProps.action = action;
}
return uikHomeCardEightProps;
}