StubOfflineFirstRestResponse.fromFile constructor
StubOfflineFirstRestResponse.fromFile(
- String filePath, {
- required String endpoint,
- StubHttpMethod? method,
Implementation
factory StubOfflineFirstRestResponse.fromFile(
String filePath, {
required String endpoint,
StubHttpMethod? method,
}) {
final apiFile = File(p.join(currentDirectory, filePath));
return StubOfflineFirstRestResponse(
apiFile.readAsStringSync(),
endpoint: endpoint,
method: method,
);
}