SearchExamplesResponse.fromJson constructor
SearchExamplesResponse.fromJson(
- Object? j
Implementation
factory SearchExamplesResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SearchExamplesResponse(
results: switch (json['results']) {
null => [],
List<Object?> $1 => [
for (final i in $1) SearchExamplesResponse_SimilarExample.fromJson(i),
],
_ => throw const FormatException('"results" is not a list'),
},
);
}