decode static method
Implementation
static UIPageBlockData? decode(dynamic json) {
if (json == null) {
return null;
}
if (json is! Map<String, dynamic>) {
return null;
}
return UIPageBlockData(
kind: PageKindExtension.decode(json['kind']),
modalPresentationStyle: ModalPresentationStyleExtension.decode(
json['modalPresentationStyle']),
modalScreenSize: ModalScreenSizeExtension.decode(json['modalScreenSize']),
modalNavigationBackButton:
NavigationBackButton.decode(json['modalNavigationBackButton']),
modalRespectSafeArea: BooleanDecoder.decode(json['modalRespectSafeArea']),
webviewUrl: StringDecoder.decode(json['webviewUrl']),
triggerSetting: TriggerSetting.decode(json['triggerSetting']),
renderAs: UIBlock.decode(json['renderAs']),
position: UIPageBlockPosition.decode(json['position']),
httpRequest: ApiHttpRequest.decode(json['httpRequest']),
tooltipSize: UITooltipSize.decode(json['tooltipSize']),
tooltipAnchor: StringDecoder.decode(json['tooltipAnchor']),
tooltipPlacement:
UITooltipPlacementExtension.decode(json['tooltipPlacement']),
tooltipTransitionTarget: UITooltipTransitionTargetExtension.decode(
json['tooltipTransitionTarget']),
props: ListDecoder.decode(
json['props'], (element) => Property.decode(element)),
query: StringDecoder.decode(json['query']),
);
}