decode static method
Implementation
static UIFlexContainerBlockData? decode(dynamic json) {
if (json == null) {
return null;
}
if (json is! Map<String, dynamic>) {
return null;
}
return UIFlexContainerBlockData(
children: ListDecoder.decode(
json['children'], (element) => UIBlock.decode(element)),
direction: FlexDirectionExtension.decode(json['direction']),
justifyContent: JustifyContentExtension.decode(json['justifyContent']),
alignItems: AlignItemsExtension.decode(json['alignItems']),
gap: IntDecoder.decode(json['gap']),
frame: FrameData.decode(json['frame']),
overflow: OverflowExtension.decode(json['overflow']),
onClick: UIBlockEventDispatcher.decode(json['onClick']),
);
}