GenerateContentSource.fromJson constructor

GenerateContentSource.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GenerateContentSource.fromJson(Map<String, dynamic> json) =>
    GenerateContentSource(
      id: json['id'] as String,
      sourceType: json['source_type'] as String,
      url: json['url'] as String?,
      title: json['title'] as String?,
      providerMetadata:
          json['provider_metadata'] as Map<String, dynamic>?,
    );