UpdateCorpusRequest.fromJson constructor

UpdateCorpusRequest.fromJson(
  1. Object? j
)

Implementation

factory UpdateCorpusRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return UpdateCorpusRequest(
    corpus: switch (json['corpus']) {
      null => null,
      Object $1 => Corpus.fromJson($1),
    },
    updateMask: switch (json['updateMask']) {
      null => null,
      Object $1 => FieldMask.fromJson($1),
    },
  );
}