getServiceAgreement method Null safety
override
It's return terms and conditions of the app.
Implementation
@override
Future<String> getServiceAgreement() async {
final response = await getData(path: 'setting/ServiceAgreement');
final result = ApiReturnResult.fromJSON(response.data);
if (result.code == 200) {
return result.data;
} else {
throw ExceptionApi(code: result.code, message: result.error?.first);
}
}