listCodes method
List Locale Codes
List of all locale codes in ISO 639-1.
Implementation
Future<models.LocaleCodeList> listCodes() async {
const String apiPath = '/locale/codes';
final Map<String, dynamic> apiParams = {};
final Map<String, String> apiHeaders = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.get,
path: apiPath, params: apiParams, headers: apiHeaders);
return models.LocaleCodeList.fromMap(res.data);
}