BidiGenerateContentRealtimeInput.fromJson constructor

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

Implementation

factory BidiGenerateContentRealtimeInput.fromJson(Map<String, dynamic> json) {
  return BidiGenerateContentRealtimeInput(
    mediaChunks: decodeListMessage(json['mediaChunks'], Blob.fromJson) ?? [],
    audio: decode(json['audio'], Blob.fromJson),
    audioStreamEnd: json['audioStreamEnd'],
    video: decode(json['video'], Blob.fromJson),
    text: json['text'],
    activityStart: decode(
      json['activityStart'],
      BidiGenerateContentRealtimeInput_ActivityStart.fromJson,
    ),
    activityEnd: decode(
      json['activityEnd'],
      BidiGenerateContentRealtimeInput_ActivityEnd.fromJson,
    ),
  );
}