$UikMultiButtonRowPropsFromJson function
Implementation
UikMultiButtonRowProps $UikMultiButtonRowPropsFromJson(
Map<String, dynamic> json) {
final uikMultiButtonRowProps = UikMultiButtonRowProps();
final String? id = jsonConvert.convert<String>(json['id']);
final List<dynamic>? buttons =
jsonConvert.convert<List<dynamic>>(json["buttons"]);
if (id != null) {
uikMultiButtonRowProps.id = id;
}
if (buttons != null) {
for (var i = 0; i < buttons.length; i++) {
uikMultiButtonRowProps.buttons.add(
UikButton(WidgetType.UikText, UikButtonProps.fromJson(buttons[i])));
}
}
return uikMultiButtonRowProps;
}