GroundingChunk_Web.fromJson constructor

GroundingChunk_Web.fromJson(
  1. Object? j
)

Implementation

factory GroundingChunk_Web.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GroundingChunk_Web(
    uri: switch (json['uri']) {
      null => null,
      Object $1 => decodeString($1),
    },
    title: switch (json['title']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}