factory StakeInput.fromJson(Map<String, dynamic> data) { return StakeInput(address: data['address'], value: data['value']); }