openrpc_dart 0.1.1 copy "openrpc_dart: ^0.1.1" to clipboard
openrpc_dart: ^0.1.1 copied to clipboard

An OpenRPC JSON Spec Parser, fromJson and toJson

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);
}
  • From JSON File
Future<void> main() async {
  String jsonPath = "$currentWorkingDirectory/example/json/$jsonFileName";
  OpenRPCLoader openRPCLoader = OpenRPCLoader();
  OpenRPC openRPC = await openRPCLoader.loadFromFile(jsonPath);
}
0
likes
0
points
171
downloads

Publisher

verified publisherdjbird.top

Weekly Downloads

An OpenRPC JSON Spec Parser, fromJson and toJson

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

json_annotation

More

Packages that depend on openrpc_dart