factory InputContract.fromJson(Map<String, dynamic> data) { return InputContract(contractID: addHexPrefix(data['contractID'])); }