listSourceText method
List all source texts. Parameters
source
filter by source content.key
filter by key.limit
limit the number of results. (max 50)skip
skip the first n results.
Implementation
Future<ListModelResponse<SourceText>> listSourceText(
{String? source, String? key, int limit = 50, int skip = 0}) async {
APIHttpResponse response =
await httpClient.get('/translate/source-text/', query: {
if (source != null) 'source': source,
if (key != null) 'key': key,
'limit': limit.toString(),
'skip': skip.toString(),
});
return ListModelResponse.fromMap<SourceText>(response.data);
}