ApiVersion.fromJson constructor

ApiVersion.fromJson(
  1. List json
)

Implementation

factory ApiVersion.fromJson(List<dynamic> json) {
  return ApiVersion(
    id: U64Codec.codec.decode(Input.fromHex(json[0] as String)),
    version: json[1] as int,
  );
}