$UikSortPagePropsFromJson function
Implementation
UikSortPageProps $UikSortPagePropsFromJson(Map<String, dynamic> json) {
final UikSortPageProps uikSortPageProps = UikSortPageProps();
final String? id = jsonConvert.convert<String>(json['id']);
if (id != null) {
uikSortPageProps.id = id;
}
// ignore: non_constant_identifier_names
final String? filterButton =
jsonConvert.convert<String>(json['filterButton']);
if (filterButton != null) {
uikSortPageProps.filterButton = UikButton(
WidgetType.UikText, UikButtonProps.fromJson(json['filterButton']));
}
final String? sheet = jsonConvert.convert<String>(json['sheet']);
if (sheet != null) {
uikSortPageProps.sheet = UikActionSheet(
WidgetType.UikText, UikActionSheetProps.fromJson(json['sheet']));
}
final UikAction? action = jsonConvert.convert<UikAction>(json['action']);
if (action != null) {
uikSortPageProps.action = action;
}
return uikSortPageProps;
}