GetCorpusRequest.fromJson constructor

GetCorpusRequest.fromJson(
  1. Object? j
)

Implementation

factory GetCorpusRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GetCorpusRequest(
    name: switch (json['name']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}