Node.fromJson constructor

Node.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Node.fromJson(Map<String, dynamic> json) => Node(
    authorized: json['authorized'],
    available: json['available'],
    averageAvailability: json['averageAvailability']?.toDouble(),
    firstPublicKey: json['firstPublicKey'],
    geoPatch: json['geoPatch'],
    ip: json['ip'],
    lastPublicKey: json['lastPublicKey'],
    networkPatch: json['networkPatch'],
    port: json['port'],
    rewardAddress: json['rewardAddress'],
    authorizationDate: json['authorizationDate'],
    enrollmentDate: json['enrollmentDate'],);