decode static method
Implementation
static UICollectionBlockData? decode(dynamic json) {
if (json == null) {
return null;
}
if (json is! Map<String, dynamic>) {
return null;
}
return UICollectionBlockData(
children: ListDecoder.decode(
json['children'], (element) => UIBlock.decode(element)),
frame: FrameData.decode(json['frame']),
gap: IntDecoder.decode(json['gap']),
kind: CollectionKindExtension.decode(json['kind']),
direction: FlexDirectionExtension.decode(json['direction']),
reference: StringDecoder.decode(json['reference']),
gridSize: IntDecoder.decode(json['gridSize']),
itemWidth: IntDecoder.decode(json['itemWidth']),
itemHeight: IntDecoder.decode(json['itemHeight']),
fullItemWidth: BooleanDecoder.decode(json['fullItemWidth']),
pageControl: BooleanDecoder.decode(json['pageControl']),
autoScroll: BooleanDecoder.decode(json['autoScroll']),
autoScrollInterval: FloatDecoder.decode(json['autoScrollInterval']),
onClick: UIBlockEventDispatcher.decode(json['onClick']),
);
}