BidiGenerateContentClientMessage.fromJson constructor

BidiGenerateContentClientMessage.fromJson(
  1. Object? j
)

Implementation

factory BidiGenerateContentClientMessage.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return BidiGenerateContentClientMessage(
    setup: switch (json['setup']) {
      null => null,
      Object $1 => BidiGenerateContentSetup.fromJson($1),
    },
    clientContent: switch (json['clientContent']) {
      null => null,
      Object $1 => BidiGenerateContentClientContent.fromJson($1),
    },
    realtimeInput: switch (json['realtimeInput']) {
      null => null,
      Object $1 => BidiGenerateContentRealtimeInput.fromJson($1),
    },
    toolResponse: switch (json['toolResponse']) {
      null => null,
      Object $1 => BidiGenerateContentToolResponse.fromJson($1),
    },
  );
}