mert 0.0.2 mert: ^0.0.2 copied to clipboard
This package helps you about request, decode response and creating sdk.
Mert #
This package helps you about request, decode response and creating sdk.
library mert;
import 'package:mert/decoder_extensions.dart';
import 'package:mert/request_helper.dart';
//This is example implementation of MertBase
class ExampleGithubHelper extends Mert {
ExampleGithubHelper() : super(base: 'api.github.com');
Future<String> getGithubProfileUrl(String username) async {
final resp = await request(RequestType.GET, '/users/$username');
final decoded = resp.decodeMap();
return decoded['html_url'];
}
}
Create your own class and functions