fromJson static method

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

Implementation

static RecoveryInfo fromJson(Map<String, dynamic> json) {
  final info = RecoveryInfo();
  info.address = json['address'];
  info.delayPeriod = json['delayPeriod'];
  info.threshold = json['threshold'];
  info.friends = List<String>.from(json['friends'] ?? []);
  info.deposit = BigInt.parse((json['deposit'] ?? 0).toString());
  return info;
}