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