decode static method

UIRootBlockData? decode(
  1. dynamic json
)

Implementation

static UIRootBlockData? decode(dynamic json) {
  if (json == null) {
    return null;
  }
  if (json is! Map<String, dynamic>) {
    return null;
  }

  return UIRootBlockData(
    pages: ListDecoder.decode(
        json['pages'], (element) => UIPageBlock.decode(element)),
    currentPageId: StringDecoder.decode(json['currentPageId']),
  );
}