fromJson static method

AccessKey fromJson(
  1. dynamic json
)

Implementation

static AccessKey fromJson(json) {
  if (json['nonce'] == null) {
    return AccessKey(json['block_hash'], json['block_height'], -1);
  }
  return AccessKey(json['block_hash'], json['block_height'], json['nonce']);
}