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