fromJsonStorage static method
Implementation
static CashuProof fromJsonStorage(Map<String, Object?> json) {
return CashuProof(
secret: json['secret'] as String,
amount: json['amount'] as int,
keysetId: json['keysetId'] as String,
unblindedSig: json['c'] as String,
state: CashuProofState.values.firstWhere(
(e) => e.toString() == json['state'],
orElse: () => CashuProofState.unspend,
),
);
}