SearchEntryPoint.fromJson constructor

SearchEntryPoint.fromJson(
  1. Object? j
)

Implementation

factory SearchEntryPoint.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SearchEntryPoint(
    renderedContent: switch (json['renderedContent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    sdkBlob: switch (json['sdkBlob']) {
      null => Uint8List(0),
      Object $1 => decodeBytes($1),
    },
  );
}