Table of Contents

Class GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Author attribution for a photo or review.

public record GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution : IEquatable<GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution>
Inheritance
GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution
Implements
Inherited Members

Properties

DisplayName

Name of the author of the Photo or Review.

[JsonPropertyName("displayName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? DisplayName { get; set; }

Property Value

string

PhotoUri

Profile photo URI of the author of the Photo or Review.

[JsonPropertyName("photoUri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? PhotoUri { get; set; }

Property Value

string

Uri

URI of the author of the Photo or Review.

[JsonPropertyName("uri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Uri { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution object.

public static GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution

The deserialized GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution object, or null if deserialization fails.