openrpc_dart

Last updated:

0 purchases

openrpc_dart Image
openrpc_dart Images
Add to Cart

Description:

openrpc dart

openrpc_dart #
An OpenRPC JSON Spec Parser for dart, from: https://spec.open-rpc.org/

OpenRPC version: 1.3

Features #

Load OpenRPC json file, and convert to dart object

Usage #
According to /example/openrpc_dart_example.dart

From JSON String

Future<void> main() async {
String jsonString = "{...OpenRPC String...}";
OpenRPCLoader openRPCLoader = OpenRPCLoader();
OpenRPC openRPC = await openRPCLoader.load(jsonString);
}
copied to clipboard

From JSON File

Future<void> main() async {
String jsonPath = "$currentWorkingDirectory/example/json/$jsonFileName";
OpenRPCLoader openRPCLoader = OpenRPCLoader();
OpenRPC openRPC = await openRPCLoader.loadFromFile(jsonPath);
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.