cln_common 0.0.1-beta.3 copy "cln_common: ^0.0.1-beta.3" to clipboard
cln_common: ^0.0.1-beta.3 copied to clipboard

Proposed solution for the package fragmentation across different package and application that used a basic package like building blocks.

example/cln_common_example.dart

import "package:cln_common/cln_common.dart";

void main() {
  var request = Request(id: 12, method: "method_name", params: {});
  LogManager.getInstance.info("JSON 2.0 request ${request.toJson()}");
  // you can build this map from a JSON string with dart built in tools
  var responseStr = {"id": 12, "jsonrpc": "22", "result": {}};
  var response = Response.fromJson(responseStr);
  LogManager.getInstance.info("JSON 2.0 response ${response.toJson()}");
}
2
likes
120
pub points
3%
popularity

Publisher

unverified uploader

Proposed solution for the package fragmentation across different package and application that used a basic package like building blocks.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

json_annotation, logger

More

Packages that depend on cln_common